Trendsic Platform Service

<back to all web services

DropboxRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator, Worker, Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Dropbox/{AgentName}
POST,OPTIONS/v1/Dropbox/{AttachmentId}
GET,POST,OPTIONS/v1/Dropbox
GET,OPTIONS/v1/Dropbox/ByAgentID/{ID}
GET,OPTIONS/v1/Dropbox/ByAgentID/{ID}/{LoggedInAgent}/{PageName}
GET,OPTIONS/v1/Dropbox/ByAgentID/{ID}/{PageName}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class DropboxRequest
    {
        public String Attachment = null;
        public ArrayList<Dropbox> Dropbox = new ArrayList<Dropbox>();
        public String AttachmentId = null;
        public Integer ID = null;
        public Integer LoggedInAgent = null;
        public String AgentName = null;
        public String PageName = null;
        public String TableName = null;
        public String FieldName = null;
        public ArrayList<Integer> RecordIds = new ArrayList<Integer>();
        public Boolean IsNewApplication = null;
        public Boolean IsFactFillerPro = null;
        public Boolean AgentId = null;
        public String AgentEmail = null;
        public String FullNameAttachee = null;
        public Boolean IsFactFinder = null;
        public Integer SharedId = null;
        public Integer Sharer = null;
        public Boolean IsSecurities = null;
        public Boolean Locked = null;
        
        public String getAttachment() { return Attachment; }
        public DropboxRequest setAttachment(String value) { this.Attachment = value; return this; }
        public ArrayList<Dropbox> getDropbox() { return Dropbox; }
        public DropboxRequest setDropbox(ArrayList<Dropbox> value) { this.Dropbox = value; return this; }
        public String getAttachmentId() { return AttachmentId; }
        public DropboxRequest setAttachmentId(String value) { this.AttachmentId = value; return this; }
        public Integer getId() { return ID; }
        public DropboxRequest setId(Integer value) { this.ID = value; return this; }
        public Integer getLoggedInAgent() { return LoggedInAgent; }
        public DropboxRequest setLoggedInAgent(Integer value) { this.LoggedInAgent = value; return this; }
        public String getAgentName() { return AgentName; }
        public DropboxRequest setAgentName(String value) { this.AgentName = value; return this; }
        public String getPageName() { return PageName; }
        public DropboxRequest setPageName(String value) { this.PageName = value; return this; }
        public String getTableName() { return TableName; }
        public DropboxRequest setTableName(String value) { this.TableName = value; return this; }
        public String getFieldName() { return FieldName; }
        public DropboxRequest setFieldName(String value) { this.FieldName = value; return this; }
        public ArrayList<Integer> getRecordIds() { return RecordIds; }
        public DropboxRequest setRecordIds(ArrayList<Integer> value) { this.RecordIds = value; return this; }
        public Boolean getIsNewApplication() { return IsNewApplication; }
        public DropboxRequest setIsNewApplication(Boolean value) { this.IsNewApplication = value; return this; }
        public Boolean getIsFactFillerPro() { return IsFactFillerPro; }
        public DropboxRequest setIsFactFillerPro(Boolean value) { this.IsFactFillerPro = value; return this; }
        public Boolean isAgentId() { return AgentId; }
        public DropboxRequest setAgentId(Boolean value) { this.AgentId = value; return this; }
        public String getAgentEmail() { return AgentEmail; }
        public DropboxRequest setAgentEmail(String value) { this.AgentEmail = value; return this; }
        public String getFullNameAttachee() { return FullNameAttachee; }
        public DropboxRequest setFullNameAttachee(String value) { this.FullNameAttachee = value; return this; }
        public Boolean getIsFactFinder() { return IsFactFinder; }
        public DropboxRequest setIsFactFinder(Boolean value) { this.IsFactFinder = value; return this; }
        public Integer getSharedId() { return SharedId; }
        public DropboxRequest setSharedId(Integer value) { this.SharedId = value; return this; }
        public Integer getSharer() { return Sharer; }
        public DropboxRequest setSharer(Integer value) { this.Sharer = value; return this; }
        public Boolean getIsSecurities() { return IsSecurities; }
        public DropboxRequest setIsSecurities(Boolean value) { this.IsSecurities = value; return this; }
        public Boolean isLocked() { return Locked; }
        public DropboxRequest setLocked(Boolean value) { this.Locked = 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 DropboxRequest 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.

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

<DropboxRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AgentEmail>String</AgentEmail>
  <AgentId>false</AgentId>
  <AgentName>String</AgentName>
  <Attachment>String</Attachment>
  <AttachmentId>String</AttachmentId>
  <Dropbox>
    <Dropbox>
      <AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
      <DateAdded>0001-01-01T00:00:00</DateAdded>
      <Description>String</Description>
      <DocumentGroup>String</DocumentGroup>
      <DocumentType>String</DocumentType>
      <FileSizeInKB>0</FileSizeInKB>
      <FirstName>String</FirstName>
      <Id>0</Id>
      <LastName>String</LastName>
      <Locked>false</Locked>
      <RecordId>0</RecordId>
      <TableName>String</TableName>
    </Dropbox>
  </Dropbox>
  <FieldName>String</FieldName>
  <FullNameAttachee>String</FullNameAttachee>
  <ID>0</ID>
  <IsFactFillerPro>false</IsFactFillerPro>
  <IsFactFinder>false</IsFactFinder>
  <IsNewApplication>false</IsNewApplication>
  <IsSecurities>false</IsSecurities>
  <Locked>false</Locked>
  <LoggedInAgent>0</LoggedInAgent>
  <PageName>String</PageName>
  <RecordIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </RecordIds>
  <SharedId>0</SharedId>
  <Sharer>0</Sharer>
  <TableName>String</TableName>
</DropboxRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DropboxResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Dropbox>
    <DropboxExtended>
      <AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
      <DateAdded>0001-01-01T00:00:00</DateAdded>
      <Description>String</Description>
      <DocumentGroup>String</DocumentGroup>
      <DocumentType>String</DocumentType>
      <FileSizeInKB>0</FileSizeInKB>
      <FirstName>String</FirstName>
      <Id>0</Id>
      <LastName>String</LastName>
      <Locked>false</Locked>
      <RecordId>0</RecordId>
      <TableName>String</TableName>
      <AgentName>String</AgentName>
      <AttachmentName>String</AttachmentName>
      <CanShare>false</CanShare>
      <IsAgent>false</IsAgent>
      <IsContact>false</IsContact>
      <IsShared>false</IsShared>
      <MimeType>String</MimeType>
      <ShareList>String</ShareList>
    </DropboxExtended>
  </Dropbox>
  <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>
</DropboxResponse>