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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Job":{"ZipUID":"00000000000000000000000000000000","FormUID":"00000000000000000000000000000000","FormName":"String","Status":"String","StatusText":"String","Message":"String","FileName":"String","Submissions":0,"Files":0,"Bytes":0,"LeftOut":0,"FilesIn":0,"BytesIn":0,"LeftOutIn":0,"ZipBytes":0,"SizeText":"String","CreatedAt":"0001-01-01T00:00:00.0000000","CreatedText":"String","CompletedAt":"0001-01-01T00:00:00.0000000","ExpiresAt":"0001-01-01T00:00:00.0000000","ExpiresText":"String","Downloads":0,"LastDownloadText":"String"},"Message":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}