Trendsic Platform Service

<back to all web services

FormContactPanelRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/contacts/{ContactId}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormContactPanelRequest
    {
        public Integer ContactId = null;
        
        public Integer getContactId() { return ContactId; }
        public FormContactPanelRequest setContactId(Integer value) { this.ContactId = value; return this; }
    }

    public static class FormContactPanelResponse
    {
        public ArrayList<FormContactPanelSub> Subs = new ArrayList<FormContactPanelSub>();
        public ArrayList<FormOfficeDraftRow> Drafts = new ArrayList<FormOfficeDraftRow>();
        public ArrayList<FormOfficeApp> Forms = new ArrayList<FormOfficeApp>();
        public Boolean CanStart = null;
        public String ContactName = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<FormContactPanelSub> getSubs() { return Subs; }
        public FormContactPanelResponse setSubs(ArrayList<FormContactPanelSub> value) { this.Subs = value; return this; }
        public ArrayList<FormOfficeDraftRow> getDrafts() { return Drafts; }
        public FormContactPanelResponse setDrafts(ArrayList<FormOfficeDraftRow> value) { this.Drafts = value; return this; }
        public ArrayList<FormOfficeApp> getForms() { return Forms; }
        public FormContactPanelResponse setForms(ArrayList<FormOfficeApp> value) { this.Forms = value; return this; }
        public Boolean isCanStart() { return CanStart; }
        public FormContactPanelResponse setCanStart(Boolean value) { this.CanStart = value; return this; }
        public String getContactName() { return ContactName; }
        public FormContactPanelResponse setContactName(String value) { this.ContactName = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormContactPanelResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormContactPanelSub
    {
        public String SubmissionUID = null;
        public String Number = null;
        public String FormName = null;
        public String Stage = null;
        public String Tone = null;
        public String SubmittedAt = null;
        public String BranchName = null;
        
        public String getSubmissionUID() { return SubmissionUID; }
        public FormContactPanelSub setSubmissionUID(String value) { this.SubmissionUID = value; return this; }
        public String getNumber() { return Number; }
        public FormContactPanelSub setNumber(String value) { this.Number = value; return this; }
        public String getFormName() { return FormName; }
        public FormContactPanelSub setFormName(String value) { this.FormName = value; return this; }
        public String getStage() { return Stage; }
        public FormContactPanelSub setStage(String value) { this.Stage = value; return this; }
        public String getTone() { return Tone; }
        public FormContactPanelSub setTone(String value) { this.Tone = value; return this; }
        public String getSubmittedAt() { return SubmittedAt; }
        public FormContactPanelSub setSubmittedAt(String value) { this.SubmittedAt = value; return this; }
        public String getBranchName() { return BranchName; }
        public FormContactPanelSub setBranchName(String value) { this.BranchName = value; return this; }
    }

    public static class FormOfficeDraftRow
    {
        public String SubmissionUID = null;
        public String FormUID = null;
        public String FormName = null;
        public String ForName = null;
        public String BranchName = null;
        public Integer ContactId = null;
        public Integer Page = null;
        public Integer Pages = null;
        public String SavedBy = null;
        public String SavedAt = null;
        
        public String getSubmissionUID() { return SubmissionUID; }
        public FormOfficeDraftRow setSubmissionUID(String value) { this.SubmissionUID = value; return this; }
        public String getFormUID() { return FormUID; }
        public FormOfficeDraftRow setFormUID(String value) { this.FormUID = value; return this; }
        public String getFormName() { return FormName; }
        public FormOfficeDraftRow setFormName(String value) { this.FormName = value; return this; }
        public String getForName() { return ForName; }
        public FormOfficeDraftRow setForName(String value) { this.ForName = value; return this; }
        public String getBranchName() { return BranchName; }
        public FormOfficeDraftRow setBranchName(String value) { this.BranchName = value; return this; }
        public Integer getContactId() { return ContactId; }
        public FormOfficeDraftRow setContactId(Integer value) { this.ContactId = value; return this; }
        public Integer getPage() { return Page; }
        public FormOfficeDraftRow setPage(Integer value) { this.Page = value; return this; }
        public Integer getPages() { return Pages; }
        public FormOfficeDraftRow setPages(Integer value) { this.Pages = value; return this; }
        public String getSavedBy() { return SavedBy; }
        public FormOfficeDraftRow setSavedBy(String value) { this.SavedBy = value; return this; }
        public String getSavedAt() { return SavedAt; }
        public FormOfficeDraftRow setSavedAt(String value) { this.SavedAt = value; return this; }
    }

    public static class FormOfficeApp
    {
        public String FormUID = null;
        public String Name = null;
        public String Noun = null;
        public String DefaultBranchId = null;
        public Boolean IsRecord = null;
        public String RoleName = null;
        
        public String getFormUID() { return FormUID; }
        public FormOfficeApp setFormUID(String value) { this.FormUID = value; return this; }
        public String getName() { return Name; }
        public FormOfficeApp setName(String value) { this.Name = value; return this; }
        public String getNoun() { return Noun; }
        public FormOfficeApp setNoun(String value) { this.Noun = value; return this; }
        public String getDefaultBranchId() { return DefaultBranchId; }
        public FormOfficeApp setDefaultBranchId(String value) { this.DefaultBranchId = value; return this; }
        public Boolean getIsRecord() { return IsRecord; }
        public FormOfficeApp setIsRecord(Boolean value) { this.IsRecord = value; return this; }
        public String getRoleName() { return RoleName; }
        public FormOfficeApp setRoleName(String value) { this.RoleName = value; return this; }
    }

}

Java FormContactPanelRequest 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/forms/contacts/{ContactId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Subs: 
	[
		{
			SubmissionUID: String,
			Number: String,
			FormName: String,
			Stage: String,
			Tone: String,
			SubmittedAt: String,
			BranchName: String
		}
	],
	Drafts: 
	[
		{
			SubmissionUID: String,
			FormUID: String,
			FormName: String,
			ForName: String,
			BranchName: String,
			ContactId: 0,
			Page: 0,
			Pages: 0,
			SavedBy: String,
			SavedAt: String
		}
	],
	Forms: 
	[
		{
			FormUID: String,
			Name: String,
			Noun: String,
			DefaultBranchId: String,
			IsRecord: False,
			RoleName: String
		}
	],
	CanStart: False,
	ContactName: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}