Trendsic Platform Service

<back to all web services

FormOfficeOfferedRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/forms/office
import 'package:servicestack/servicestack.dart';

class FormOfficeApp implements IConvertible
{
    String? FormUID;
    String? Name;
    String? Noun;
    String? DefaultBranchId;

    FormOfficeApp({this.FormUID,this.Name,this.Noun,this.DefaultBranchId});
    FormOfficeApp.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class FormInboxCount implements IConvertible
{
    String? V;
    String? L;
    int? N;

    FormInboxCount({this.V,this.L,this.N});
    FormInboxCount.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'V': V,
        'L': L,
        'N': N
    };

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

class FormOfficeDraftRow implements IConvertible
{
    String? SubmissionUID;
    String? FormUID;
    String? FormName;
    String? ForName;
    String? BranchName;
    int? ContactId;
    int? Page;
    int? Pages;
    String? SavedBy;
    String? SavedAt;

    FormOfficeDraftRow({this.SubmissionUID,this.FormUID,this.FormName,this.ForName,this.BranchName,this.ContactId,this.Page,this.Pages,this.SavedBy,this.SavedAt});
    FormOfficeDraftRow.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        SubmissionUID = json['SubmissionUID'];
        FormUID = json['FormUID'];
        FormName = json['FormName'];
        ForName = json['ForName'];
        BranchName = json['BranchName'];
        ContactId = json['ContactId'];
        Page = json['Page'];
        Pages = json['Pages'];
        SavedBy = json['SavedBy'];
        SavedAt = json['SavedAt'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'SubmissionUID': SubmissionUID,
        'FormUID': FormUID,
        'FormName': FormName,
        'ForName': ForName,
        'BranchName': BranchName,
        'ContactId': ContactId,
        'Page': Page,
        'Pages': Pages,
        'SavedBy': SavedBy,
        'SavedAt': SavedAt
    };

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

class FormOfficeOfferedResponse implements IConvertible
{
    List<FormOfficeApp>? Apps = [];
    List<FormInboxCount>? Branches = [];
    List<FormOfficeDraftRow>? Drafts = [];
    bool? CanSearchContacts;
    ResponseStatus? ResponseStatus;

    FormOfficeOfferedResponse({this.Apps,this.Branches,this.Drafts,this.CanSearchContacts,this.ResponseStatus});
    FormOfficeOfferedResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Apps = JsonConverters.fromJson(json['Apps'],'List<FormOfficeApp>',context!);
        Branches = JsonConverters.fromJson(json['Branches'],'List<FormInboxCount>',context!);
        Drafts = JsonConverters.fromJson(json['Drafts'],'List<FormOfficeDraftRow>',context!);
        CanSearchContacts = json['CanSearchContacts'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Apps': JsonConverters.toJson(Apps,'List<FormOfficeApp>',context!),
        'Branches': JsonConverters.toJson(Branches,'List<FormInboxCount>',context!),
        'Drafts': JsonConverters.toJson(Drafts,'List<FormOfficeDraftRow>',context!),
        'CanSearchContacts': CanSearchContacts,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

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

class FormOfficeOfferedRequest implements IConvertible
{
    String? FormUID;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'FormOfficeApp': TypeInfo(TypeOf.Class, create:() => FormOfficeApp()),
    'FormInboxCount': TypeInfo(TypeOf.Class, create:() => FormInboxCount()),
    'FormOfficeDraftRow': TypeInfo(TypeOf.Class, create:() => FormOfficeDraftRow()),
    'FormOfficeOfferedResponse': TypeInfo(TypeOf.Class, create:() => FormOfficeOfferedResponse()),
    'List<FormOfficeApp>': TypeInfo(TypeOf.Class, create:() => <FormOfficeApp>[]),
    'List<FormInboxCount>': TypeInfo(TypeOf.Class, create:() => <FormInboxCount>[]),
    'List<FormOfficeDraftRow>': TypeInfo(TypeOf.Class, create:() => <FormOfficeDraftRow>[]),
    'FormOfficeOfferedRequest': TypeInfo(TypeOf.Class, create:() => FormOfficeOfferedRequest()),
});

Dart FormOfficeOfferedRequest DTOs

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

HTTP + XML

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

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

<FormOfficeOfferedResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Apps>
    <FormOfficeApp>
      <DefaultBranchId>String</DefaultBranchId>
      <FormUID>String</FormUID>
      <Name>String</Name>
      <Noun>String</Noun>
    </FormOfficeApp>
  </Apps>
  <Branches>
    <FormInboxCount>
      <L>String</L>
      <N>0</N>
      <V>String</V>
    </FormInboxCount>
  </Branches>
  <CanSearchContacts>false</CanSearchContacts>
  <Drafts>
    <FormOfficeDraftRow>
      <BranchName>String</BranchName>
      <ContactId>0</ContactId>
      <ForName>String</ForName>
      <FormName>String</FormName>
      <FormUID>String</FormUID>
      <Page>0</Page>
      <Pages>0</Pages>
      <SavedAt>String</SavedAt>
      <SavedBy>String</SavedBy>
      <SubmissionUID>String</SubmissionUID>
    </FormOfficeDraftRow>
  </Drafts>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</FormOfficeOfferedResponse>