Trendsic Platform Service

<back to all web services

FormGoSendPreviewRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/go-send/preview
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormGoSendPreviewRequest
    {
        public UUID FormUID = null;
        public String Mode = null;
        public ArrayList<String> Positions = new ArrayList<String>();
        public ArrayList<Integer> Workers = new ArrayList<Integer>();
        public Boolean WithRows = null;
        
        public UUID getFormUID() { return FormUID; }
        public FormGoSendPreviewRequest setFormUID(UUID value) { this.FormUID = value; return this; }
        public String getMode() { return Mode; }
        public FormGoSendPreviewRequest setMode(String value) { this.Mode = value; return this; }
        public ArrayList<String> getPositions() { return Positions; }
        public FormGoSendPreviewRequest setPositions(ArrayList<String> value) { this.Positions = value; return this; }
        public ArrayList<Integer> getWorkers() { return Workers; }
        public FormGoSendPreviewRequest setWorkers(ArrayList<Integer> value) { this.Workers = value; return this; }
        public Boolean isWithRows() { return WithRows; }
        public FormGoSendPreviewRequest setWithRows(Boolean value) { this.WithRows = value; return this; }
    }

    public static class FormGoSendPreviewResponse
    {
        public ArrayList<FormGoPosition> Positions = new ArrayList<FormGoPosition>();
        public ArrayList<FormGoSendWorker> Workers = new ArrayList<FormGoSendWorker>();
        public Integer Send = null;
        public Integer Skipped = null;
        public String Consequence = null;
        public String SendLabel = null;
        public String Refusal = null;
        public String SendOff = null;
        public Integer Max = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<FormGoPosition> getPositions() { return Positions; }
        public FormGoSendPreviewResponse setPositions(ArrayList<FormGoPosition> value) { this.Positions = value; return this; }
        public ArrayList<FormGoSendWorker> getWorkers() { return Workers; }
        public FormGoSendPreviewResponse setWorkers(ArrayList<FormGoSendWorker> value) { this.Workers = value; return this; }
        public Integer getSend() { return Send; }
        public FormGoSendPreviewResponse setSend(Integer value) { this.Send = value; return this; }
        public Integer getSkipped() { return Skipped; }
        public FormGoSendPreviewResponse setSkipped(Integer value) { this.Skipped = value; return this; }
        public String getConsequence() { return Consequence; }
        public FormGoSendPreviewResponse setConsequence(String value) { this.Consequence = value; return this; }
        public String getSendLabel() { return SendLabel; }
        public FormGoSendPreviewResponse setSendLabel(String value) { this.SendLabel = value; return this; }
        public String getRefusal() { return Refusal; }
        public FormGoSendPreviewResponse setRefusal(String value) { this.Refusal = value; return this; }
        public String getSendOff() { return SendOff; }
        public FormGoSendPreviewResponse setSendOff(String value) { this.SendOff = value; return this; }
        public Integer getMax() { return Max; }
        public FormGoSendPreviewResponse setMax(Integer value) { this.Max = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormGoSendPreviewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormGoPosition
    {
        public String SkillUID = null;
        public String Name = null;
        public Boolean Active = null;
        public Boolean Ticked = null;
        public Integer Count = null;
        
        public String getSkillUID() { return SkillUID; }
        public FormGoPosition setSkillUID(String value) { this.SkillUID = value; return this; }
        public String getName() { return Name; }
        public FormGoPosition setName(String value) { this.Name = value; return this; }
        public Boolean isActive() { return Active; }
        public FormGoPosition setActive(Boolean value) { this.Active = value; return this; }
        public Boolean isTicked() { return Ticked; }
        public FormGoPosition setTicked(Boolean value) { this.Ticked = value; return this; }
        public Integer getCount() { return Count; }
        public FormGoPosition setCount(Integer value) { this.Count = value; return this; }
    }

    public static class FormGoSendWorker
    {
        public Integer Id = null;
        public String Name = null;
        public String Position = null;
        public Boolean Submitted = null;
        
        public Integer getId() { return Id; }
        public FormGoSendWorker setId(Integer value) { this.Id = value; return this; }
        public String getName() { return Name; }
        public FormGoSendWorker setName(String value) { this.Name = value; return this; }
        public String getPosition() { return Position; }
        public FormGoSendWorker setPosition(String value) { this.Position = value; return this; }
        public Boolean isSubmitted() { return Submitted; }
        public FormGoSendWorker setSubmitted(Boolean value) { this.Submitted = value; return this; }
    }

}

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

POST /v1/forms/go-send/preview HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	FormUID: 00000000000000000000000000000000,
	Mode: String,
	Positions: 
	[
		String
	],
	Workers: 
	[
		0
	],
	WithRows: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Positions: 
	[
		{
			SkillUID: String,
			Name: String,
			Active: False,
			Ticked: False,
			Count: 0
		}
	],
	Workers: 
	[
		{
			Id: 0,
			Name: String,
			Position: String,
			Submitted: False
		}
	],
	Send: 0,
	Skipped: 0,
	Consequence: String,
	SendLabel: String,
	Refusal: String,
	SendOff: String,
	Max: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}