Trendsic Platform Service

<back to all web services

FormZipOneRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/submissions/zips/{ZipUID}
import 'package:servicestack/servicestack.dart';

class FormZipJobView implements IConvertible
{
    String? ZipUID;
    String? FormUID;
    String? FormName;
    String? Status;
    String? StatusText;
    String? Message;
    String? FileName;
    int? Submissions;
    int? Files;
    int? Bytes;
    int? LeftOut;
    int? FilesIn;
    int? BytesIn;
    int? LeftOutIn;
    int? ZipBytes;
    String? SizeText;
    DateTime? CreatedAt;
    String? CreatedText;
    DateTime? CompletedAt;
    DateTime? ExpiresAt;
    String? ExpiresText;
    int? Downloads;
    String? LastDownloadText;

    FormZipJobView({this.ZipUID,this.FormUID,this.FormName,this.Status,this.StatusText,this.Message,this.FileName,this.Submissions,this.Files,this.Bytes,this.LeftOut,this.FilesIn,this.BytesIn,this.LeftOutIn,this.ZipBytes,this.SizeText,this.CreatedAt,this.CreatedText,this.CompletedAt,this.ExpiresAt,this.ExpiresText,this.Downloads,this.LastDownloadText});
    FormZipJobView.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ZipUID = json['ZipUID'];
        FormUID = json['FormUID'];
        FormName = json['FormName'];
        Status = json['Status'];
        StatusText = json['StatusText'];
        Message = json['Message'];
        FileName = json['FileName'];
        Submissions = json['Submissions'];
        Files = json['Files'];
        Bytes = json['Bytes'];
        LeftOut = json['LeftOut'];
        FilesIn = json['FilesIn'];
        BytesIn = json['BytesIn'];
        LeftOutIn = json['LeftOutIn'];
        ZipBytes = json['ZipBytes'];
        SizeText = json['SizeText'];
        CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!);
        CreatedText = json['CreatedText'];
        CompletedAt = JsonConverters.fromJson(json['CompletedAt'],'DateTime',context!);
        ExpiresAt = JsonConverters.fromJson(json['ExpiresAt'],'DateTime',context!);
        ExpiresText = json['ExpiresText'];
        Downloads = json['Downloads'];
        LastDownloadText = json['LastDownloadText'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ZipUID': ZipUID,
        'FormUID': FormUID,
        'FormName': FormName,
        'Status': Status,
        'StatusText': StatusText,
        'Message': Message,
        'FileName': FileName,
        'Submissions': Submissions,
        'Files': Files,
        'Bytes': Bytes,
        'LeftOut': LeftOut,
        'FilesIn': FilesIn,
        'BytesIn': BytesIn,
        'LeftOutIn': LeftOutIn,
        'ZipBytes': ZipBytes,
        'SizeText': SizeText,
        'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!),
        'CreatedText': CreatedText,
        'CompletedAt': JsonConverters.toJson(CompletedAt,'DateTime',context!),
        'ExpiresAt': JsonConverters.toJson(ExpiresAt,'DateTime',context!),
        'ExpiresText': ExpiresText,
        'Downloads': Downloads,
        'LastDownloadText': LastDownloadText
    };

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

class FormZipOneResponse implements IConvertible
{
    FormZipJobView? Job;
    String? Message;
    ResponseStatus? ResponseStatus;

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

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

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

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

class FormZipOneRequest implements IConvertible
{
    String? ZipUID;

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

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

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

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

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

Dart FormZipOneRequest 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/submissions/zips/{ZipUID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormZipOneResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Job>
    <Bytes>0</Bytes>
    <BytesIn>0</BytesIn>
    <CompletedAt>0001-01-01T00:00:00</CompletedAt>
    <CreatedAt>0001-01-01T00:00:00</CreatedAt>
    <CreatedText>String</CreatedText>
    <Downloads>0</Downloads>
    <ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
    <ExpiresText>String</ExpiresText>
    <FileName>String</FileName>
    <Files>0</Files>
    <FilesIn>0</FilesIn>
    <FormName>String</FormName>
    <FormUID>00000000-0000-0000-0000-000000000000</FormUID>
    <LastDownloadText>String</LastDownloadText>
    <LeftOut>0</LeftOut>
    <LeftOutIn>0</LeftOutIn>
    <Message>String</Message>
    <SizeText>String</SizeText>
    <Status>String</Status>
    <StatusText>String</StatusText>
    <Submissions>0</Submissions>
    <ZipBytes>0</ZipBytes>
    <ZipUID>00000000-0000-0000-0000-000000000000</ZipUID>
  </Job>
  <Message>String</Message>
  <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>
</FormZipOneResponse>