Trendsic Platform Service

<back to all web services

CoverageBoardSeatsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/coverage/board/seats
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class CoverageBoardSeat implements IConvertible
{
    int? WorkerScheduleItemID;
    String? Label;
    String? Who;
    int? ContactID;

    CoverageBoardSeat({this.WorkerScheduleItemID,this.Label,this.Who,this.ContactID});
    CoverageBoardSeat.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        WorkerScheduleItemID = json['WorkerScheduleItemID'];
        Label = json['Label'];
        Who = json['Who'];
        ContactID = json['ContactID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'WorkerScheduleItemID': WorkerScheduleItemID,
        'Label': Label,
        'Who': Who,
        'ContactID': ContactID
    };

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

class CoverageBoardSeatsResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<CoverageBoardSeat>? Seats = [];

    CoverageBoardSeatsResponse({this.ResponseStatus,this.Seats});
    CoverageBoardSeatsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        Seats = JsonConverters.fromJson(json['Seats'],'List<CoverageBoardSeat>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'Seats': JsonConverters.toJson(Seats,'List<CoverageBoardSeat>',context!)
    };

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

class CoverageBoardSeatsRequest implements IConvertible
{
    CoverageBoardSeatsRequest();
    CoverageBoardSeatsRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "CoverageBoardSeatsRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'CoverageBoardSeat': TypeInfo(TypeOf.Class, create:() => CoverageBoardSeat()),
    'CoverageBoardSeatsResponse': TypeInfo(TypeOf.Class, create:() => CoverageBoardSeatsResponse()),
    'List<CoverageBoardSeat>': TypeInfo(TypeOf.Class, create:() => <CoverageBoardSeat>[]),
    'CoverageBoardSeatsRequest': TypeInfo(TypeOf.Class, create:() => CoverageBoardSeatsRequest()),
});

Dart CoverageBoardSeatsRequest DTOs

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

HTTP + OTHER

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

GET /v1/coverage/board/seats HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Seats":[{"WorkerScheduleItemID":0,"Label":"String","Who":"String","ContactID":0}]}