Trendsic Platform Service

<back to all web services

CalendarResourceViewRequest

The following routes are available for this service:
POST,OPTIONS/v1/Calendar/ResourceView
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CalendarResourceViewRequest
    {
        public Date StartDate = null;
        public Date EndDate = null;
        public Boolean Inverse = null;
        public Boolean ResourceOnly = null;
        public Boolean ShowEquipment = null;
        public Boolean ShowWorkers = null;
        public Integer ContactId = null;
        public String ContactName = null;
        public String ContactTag = null;
        public Integer EquipmentId = null;
        public String EquipmentName = null;
        public String EquipmentSN = null;
        
        public Date getStartDate() { return StartDate; }
        public CalendarResourceViewRequest setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public CalendarResourceViewRequest setEndDate(Date value) { this.EndDate = value; return this; }
        public Boolean isInverse() { return Inverse; }
        public CalendarResourceViewRequest setInverse(Boolean value) { this.Inverse = value; return this; }
        public Boolean isResourceOnly() { return ResourceOnly; }
        public CalendarResourceViewRequest setResourceOnly(Boolean value) { this.ResourceOnly = value; return this; }
        public Boolean isShowEquipment() { return ShowEquipment; }
        public CalendarResourceViewRequest setShowEquipment(Boolean value) { this.ShowEquipment = value; return this; }
        public Boolean isShowWorkers() { return ShowWorkers; }
        public CalendarResourceViewRequest setShowWorkers(Boolean value) { this.ShowWorkers = value; return this; }
        public Integer getContactId() { return ContactId; }
        public CalendarResourceViewRequest setContactId(Integer value) { this.ContactId = value; return this; }
        public String getContactName() { return ContactName; }
        public CalendarResourceViewRequest setContactName(String value) { this.ContactName = value; return this; }
        public String getContactTag() { return ContactTag; }
        public CalendarResourceViewRequest setContactTag(String value) { this.ContactTag = value; return this; }
        public Integer getEquipmentId() { return EquipmentId; }
        public CalendarResourceViewRequest setEquipmentId(Integer value) { this.EquipmentId = value; return this; }
        public String getEquipmentName() { return EquipmentName; }
        public CalendarResourceViewRequest setEquipmentName(String value) { this.EquipmentName = value; return this; }
        public String getEquipmentSN() { return EquipmentSN; }
        public CalendarResourceViewRequest setEquipmentSN(String value) { this.EquipmentSN = value; return this; }
    }

}

Java CalendarResourceViewRequest 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/Calendar/ResourceView HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	StartDate: 0001-01-01,
	EndDate: 0001-01-01,
	Inverse: False,
	ResourceOnly: False,
	ShowEquipment: False,
	ShowWorkers: False,
	ContactId: 0,
	ContactName: String,
	ContactTag: String,
	EquipmentId: 0,
	EquipmentName: String,
	EquipmentSN: String
}