Trendsic Platform Service

<back to all web services

DropboxCustomerRequest

The following routes are available for this service:
GET,POST,OPTIONS/v1/Dropbox/Customer/{CustomerId}
GET,POST,OPTIONS/v1/Dropbox/Customer/CustomerCheckIn/{CustomerCheckInId}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class DropboxCustomerRequest
    {
        public ArrayList<Dropbox> Dropbox = new ArrayList<Dropbox>();
        public UUID CustomerId = null;
        public UUID CustomerCheckInId = null;
        
        public ArrayList<Dropbox> getDropbox() { return Dropbox; }
        public DropboxCustomerRequest setDropbox(ArrayList<Dropbox> value) { this.Dropbox = value; return this; }
        public UUID getCustomerId() { return CustomerId; }
        public DropboxCustomerRequest setCustomerId(UUID value) { this.CustomerId = value; return this; }
        public UUID getCustomerCheckInId() { return CustomerCheckInId; }
        public DropboxCustomerRequest setCustomerCheckInId(UUID value) { this.CustomerCheckInId = value; return this; }
    }

    public static class Dropbox
    {
        public Integer Id = null;
        public UUID AttachmentId = null;
        public String FirstName = null;
        public String LastName = null;
        public String TableName = null;
        public Integer RecordId = null;
        public String Description = null;
        public String DocumentType = null;
        public String DocumentGroup = null;
        public Date DateAdded = null;
        public Boolean Locked = null;
        public Double FileSizeInKB = null;
        
        public Integer getId() { return Id; }
        public Dropbox setId(Integer value) { this.Id = value; return this; }
        public UUID getAttachmentId() { return AttachmentId; }
        public Dropbox setAttachmentId(UUID value) { this.AttachmentId = value; return this; }
        public String getFirstName() { return FirstName; }
        public Dropbox setFirstName(String value) { this.FirstName = value; return this; }
        public String getLastName() { return LastName; }
        public Dropbox setLastName(String value) { this.LastName = value; return this; }
        public String getTableName() { return TableName; }
        public Dropbox setTableName(String value) { this.TableName = value; return this; }
        public Integer getRecordId() { return RecordId; }
        public Dropbox setRecordId(Integer value) { this.RecordId = value; return this; }
        public String getDescription() { return Description; }
        public Dropbox setDescription(String value) { this.Description = value; return this; }
        public String getDocumentType() { return DocumentType; }
        public Dropbox setDocumentType(String value) { this.DocumentType = value; return this; }
        public String getDocumentGroup() { return DocumentGroup; }
        public Dropbox setDocumentGroup(String value) { this.DocumentGroup = value; return this; }
        public Date getDateAdded() { return DateAdded; }
        public Dropbox setDateAdded(Date value) { this.DateAdded = value; return this; }
        public Boolean isLocked() { return Locked; }
        public Dropbox setLocked(Boolean value) { this.Locked = value; return this; }
        public Double getFileSizeInKB() { return FileSizeInKB; }
        public Dropbox setFileSizeInKB(Double value) { this.FileSizeInKB = value; return this; }
    }

    public static class DropboxResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<DropboxExtended> Dropbox = new ArrayList<DropboxExtended>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DropboxResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<DropboxExtended> getDropbox() { return Dropbox; }
        public DropboxResponse setDropbox(ArrayList<DropboxExtended> value) { this.Dropbox = value; return this; }
    }

    public static class DropboxExtended extends Dropbox
    {
        public String AttachmentName = null;
        public String AgentName = null;
        public String MimeType = null;
        public Boolean IsAgent = null;
        public Boolean IsContact = null;
        public Boolean IsShared = null;
        public Boolean CanShare = null;
        public String ShareList = null;
        
        public String getAttachmentName() { return AttachmentName; }
        public DropboxExtended setAttachmentName(String value) { this.AttachmentName = value; return this; }
        public String getAgentName() { return AgentName; }
        public DropboxExtended setAgentName(String value) { this.AgentName = value; return this; }
        public String getMimeType() { return MimeType; }
        public DropboxExtended setMimeType(String value) { this.MimeType = value; return this; }
        public Boolean getIsAgent() { return IsAgent; }
        public DropboxExtended setIsAgent(Boolean value) { this.IsAgent = value; return this; }
        public Boolean getIsContact() { return IsContact; }
        public DropboxExtended setIsContact(Boolean value) { this.IsContact = value; return this; }
        public Boolean getIsShared() { return IsShared; }
        public DropboxExtended setIsShared(Boolean value) { this.IsShared = value; return this; }
        public Boolean isCanShare() { return CanShare; }
        public DropboxExtended setCanShare(Boolean value) { this.CanShare = value; return this; }
        public String getShareList() { return ShareList; }
        public DropboxExtended setShareList(String value) { this.ShareList = value; return this; }
    }

}

Java DropboxCustomerRequest 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.

POST /v1/Dropbox/Customer/{CustomerId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Dropbox":[{"Id":0,"AttachmentId":"00000000000000000000000000000000","FirstName":"String","LastName":"String","TableName":"String","RecordId":0,"Description":"String","DocumentType":"String","DocumentGroup":"String","DateAdded":"0001-01-01T00:00:00.0000000","Locked":false,"FileSizeInKB":0}],"CustomerId":"00000000000000000000000000000000","CustomerCheckInId":"00000000000000000000000000000000"}
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"}},"Dropbox":[{"AttachmentName":"String","AgentName":"String","MimeType":"String","IsAgent":false,"IsContact":false,"IsShared":false,"CanShare":false,"ShareList":"String","Id":0,"AttachmentId":"00000000000000000000000000000000","FirstName":"String","LastName":"String","TableName":"String","RecordId":0,"Description":"String","DocumentType":"String","DocumentGroup":"String","DateAdded":"0001-01-01T00:00:00.0000000","Locked":false,"FileSizeInKB":0}]}