Trendsic Platform Service

<back to all web services

DropboxProjectRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Dropbox/Project/{ProjectId}/{LoggedInAgentId}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class DropboxProjectRequest
    {
        public ArrayList<Dropbox> Dropbox = new ArrayList<Dropbox>();
        public Integer ProjectId = null;
        public Integer LoggedInAgentId = null;
        
        public ArrayList<Dropbox> getDropbox() { return Dropbox; }
        public DropboxProjectRequest setDropbox(ArrayList<Dropbox> value) { this.Dropbox = value; return this; }
        public Integer getProjectId() { return ProjectId; }
        public DropboxProjectRequest setProjectId(Integer value) { this.ProjectId = value; return this; }
        public Integer getLoggedInAgentId() { return LoggedInAgentId; }
        public DropboxProjectRequest setLoggedInAgentId(Integer value) { this.LoggedInAgentId = 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 DropboxProjectRequest DTOs

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

HTTP + JSV

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

GET /v1/Dropbox/Project/{ProjectId}/{LoggedInAgentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01,
			Locked: False,
			FileSizeInKB: 0
		}
	]
}