Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

MissionGetListByType

Requires Authentication
The following routes are available for this service:
All Verbs/MissionGetListByType
import 'package:servicestack/servicestack.dart';

enum MissionType
{
    NEW,
    STARTED,
    ENDED,
}

class MissionGetListByType implements IConvertible
{
    /**
    * With mission details
    */
    // @ApiMember(Description="With mission details")
    bool? WithDetails;

    /**
    * Type of mission to include
    */
    // @ApiMember(Description="Type of mission to include")
    MissionType? MissionType;

    /**
    * Optional: mission type filter
    */
    // @ApiMember(Description="Optional: mission type filter")
    String? MissionTypeFilter;

    MissionGetListByType({this.WithDetails,this.MissionType,this.MissionTypeFilter});
    MissionGetListByType.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        WithDetails = json['WithDetails'];
        MissionType = JsonConverters.fromJson(json['MissionType'],'MissionType',context!);
        MissionTypeFilter = json['MissionTypeFilter'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'WithDetails': WithDetails,
        'MissionType': JsonConverters.toJson(MissionType,'MissionType',context!),
        'MissionTypeFilter': MissionTypeFilter
    };

    getTypeName() => "MissionGetListByType";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
    'MissionType': TypeInfo(TypeOf.Enum, enumValues:MissionType.values),
    'MissionGetListByType': TypeInfo(TypeOf.Class, create:() => MissionGetListByType()),
});

Dart MissionGetListByType DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /MissionGetListByType HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"WithDetails":false,"MissionType":"NEW","MissionTypeFilter":"String"}