Trendsic Platform Service

<back to all web services

RfpContactsRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Rfp/Contacts
import 'package:servicestack/servicestack.dart';

class RfpContactSummary implements IConvertible
{
    int? ContactId;
    String? Name;
    double? Rate;
    String? Tags;

    RfpContactSummary({this.ContactId,this.Name,this.Rate,this.Tags});
    RfpContactSummary.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ContactId = json['ContactId'];
        Name = json['Name'];
        Rate = JsonConverters.toDouble(json['Rate']);
        Tags = json['Tags'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ContactId': ContactId,
        'Name': Name,
        'Rate': Rate,
        'Tags': Tags
    };

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

class RfpContactsResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<RfpContactSummary>? Contacts = [];

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

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

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

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

class RfpContactsRequest implements IConvertible
{
    String? Tag;
    bool? All;

    RfpContactsRequest({this.Tag,this.All});
    RfpContactsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

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

Dart RfpContactsRequest 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/Rfp/Contacts HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Contacts":[{"ContactId":0,"Name":"String","Rate":0,"Tags":"String"}]}