Trendsic Platform Service

<back to all web services

FormGoSentRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/go-sent
import 'package:servicestack/servicestack.dart';

class FormGoSentRow implements IConvertible
{
    int? Id;
    String? Name;
    String? Position;
    String? FirstSentAt;
    String? FirstSentBy;
    String? LastSentAt;
    String? LastSentBy;
    int? Times;
    String? How;
    String? Went;
    String? Where;
    bool? CanRemove;

    FormGoSentRow({this.Id,this.Name,this.Position,this.FirstSentAt,this.FirstSentBy,this.LastSentAt,this.LastSentBy,this.Times,this.How,this.Went,this.Where,this.CanRemove});
    FormGoSentRow.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Name = json['Name'];
        Position = json['Position'];
        FirstSentAt = json['FirstSentAt'];
        FirstSentBy = json['FirstSentBy'];
        LastSentAt = json['LastSentAt'];
        LastSentBy = json['LastSentBy'];
        Times = json['Times'];
        How = json['How'];
        Went = json['Went'];
        Where = json['Where'];
        CanRemove = json['CanRemove'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Name': Name,
        'Position': Position,
        'FirstSentAt': FirstSentAt,
        'FirstSentBy': FirstSentBy,
        'LastSentAt': LastSentAt,
        'LastSentBy': LastSentBy,
        'Times': Times,
        'How': How,
        'Went': Went,
        'Where': Where,
        'CanRemove': CanRemove
    };

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

class FormGoSentResponse implements IConvertible
{
    List<FormGoSentRow>? Rows = [];
    String? Message;
    ResponseStatus? ResponseStatus;

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

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

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

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

class FormGoSentRequest implements IConvertible
{
    String? FormUID;

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

    fromMap(Map<String, dynamic> json) {
        FormUID = json['FormUID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'FormUID': FormUID
    };

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

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

Dart FormGoSentRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /v1/forms/go-sent HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Rows":[{"Id":0,"Name":"String","Position":"String","FirstSentAt":"String","FirstSentBy":"String","LastSentAt":"String","LastSentBy":"String","Times":0,"How":"String","Went":"String","Where":"String","CanRemove":false}],"Message":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}