Trendsic Platform Service

<back to all web services

CoverageSurgeSendRequest

Requires Authentication
The following routes are available for this service:
POST/v1/coverage/surge/send
import 'package:servicestack/servicestack.dart';

class CoverageSurgeSendResponse implements IConvertible
{
    int? AnchorGapId;
    List<int>? GapIds = [];
    int? PeopleTexted;
    ResponseStatus? ResponseStatus;

    CoverageSurgeSendResponse({this.AnchorGapId,this.GapIds,this.PeopleTexted,this.ResponseStatus});
    CoverageSurgeSendResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'AnchorGapId': AnchorGapId,
        'GapIds': JsonConverters.toJson(GapIds,'List<int>',context!),
        'PeopleTexted': PeopleTexted,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

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

class CoverageSurgeSendRequest implements IConvertible
{
    List<int>? GapIds = [];

    CoverageSurgeSendRequest({this.GapIds});
    CoverageSurgeSendRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'CoverageSurgeSendResponse': TypeInfo(TypeOf.Class, create:() => CoverageSurgeSendResponse()),
    'CoverageSurgeSendRequest': TypeInfo(TypeOf.Class, create:() => CoverageSurgeSendRequest()),
});

Dart CoverageSurgeSendRequest DTOs

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

HTTP + JSV

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

POST /v1/coverage/surge/send HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	GapIds: 
	[
		0
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	AnchorGapId: 0,
	GapIds: 
	[
		0
	],
	PeopleTexted: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}