Trendsic Platform Service

<back to all web services

MessagingSettingsRequest

Requires Authentication
The following routes are available for this service:
GET,PUT/v1/messaging/settings
import 'package:servicestack/servicestack.dart';

class MessagingJsonResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;

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

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

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

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

class MessagingSettingsRequest implements IConvertible
{
    String? BranchId;
    Uint8List? RequestStream;

    MessagingSettingsRequest({this.BranchId,this.RequestStream});
    MessagingSettingsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'BranchId': BranchId,
        'RequestStream': JsonConverters.toJson(RequestStream,'Uint8List',context!)
    };

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

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

Dart MessagingSettingsRequest 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.

PUT /v1/messaging/settings HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"BranchId":"00000000000000000000000000000000"}
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"}}}