Trendsic Platform Service

<back to all web services

JobScheduleRequest

Requires Authentication
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/Job/Schedule/{JobID}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class JobScheduleRequest
    {
        public Integer JobID = null;
        
        public Integer getJobID() { return JobID; }
        public JobScheduleRequest setJobID(Integer value) { this.JobID = value; return this; }
    }

    public static class JobScheduleResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<CalendarEvent> JobSchedule = new ArrayList<CalendarEvent>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public JobScheduleResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<CalendarEvent> getJobSchedule() { return JobSchedule; }
        public JobScheduleResponse setJobSchedule(ArrayList<CalendarEvent> value) { this.JobSchedule = value; return this; }
    }

    public static class CalendarEvent
    {
        public Integer CalendarEventId = null;
        public UUID CalendarId = null;
        public Date EventStart = null;
        public Date EventEnd = null;
        public String Location = null;
        public String Summary = null;
        public String Description = null;
        public Integer EventTypeId = null;
        public Boolean Recurrence = null;
        public String RecurrenceFrequency = null;
        public String RecurrenceBy = null;
        public String RecurrenceByValue = null;
        public Date RecurrenceUntil = null;
        public String CreatedBy = null;
        public String CreatedByName = null;
        public Date DateCreated = null;
        public String ModifiedBy = null;
        public Date DateModified = null;
        public Boolean Deleted = null;
        public String TimeZone = null;
        public Integer Offset = null;
        public Date TextReminderSentDate = null;
        public Boolean Confirmed = null;
        public String ConfirmationTextId = null;
        public String FirstTextReminderId = null;
        public String SecondTextReminderId = null;
        public UUID LocationUID = null;
        public Date AgentReminderSentDate = null;
        public Integer ContactId = null;
        public Boolean IsPrivate = null;
        public Integer ProjectID = null;
        public Integer JobID = null;
        public Date ProjectStartDate = null;
        public Date ProjectEndDate = null;
        public Date MaxCrewEndDate = null;
        public Date MaxEquipmentEndDate = null;
        public UUID CheckInId = null;
        public Boolean AllDay = null;
        public String JobName = null;
        public String JobStatusName = null;
        public Integer JobStatusId = null;
        public String ProjectName = null;
        public Integer ResourceId = null;
        public String ResourceName = null;
        public Date Original_EventStart = null;
        public Boolean Original_Recurrence = null;
        public String Original_RecurrenceFrequency = null;
        public String Original_RecurrenceBy = null;
        public String Original_RecurrenceByValue = null;
        public Date Original_RecurrenceUntil = null;
        public String Checksum = null;
        
        public Integer getCalendarEventId() { return CalendarEventId; }
        public CalendarEvent setCalendarEventId(Integer value) { this.CalendarEventId = value; return this; }
        public UUID getCalendarId() { return CalendarId; }
        public CalendarEvent setCalendarId(UUID value) { this.CalendarId = value; return this; }
        public Date getEventStart() { return EventStart; }
        public CalendarEvent setEventStart(Date value) { this.EventStart = value; return this; }
        public Date getEventEnd() { return EventEnd; }
        public CalendarEvent setEventEnd(Date value) { this.EventEnd = value; return this; }
        public String getLocation() { return Location; }
        public CalendarEvent setLocation(String value) { this.Location = value; return this; }
        public String getSummary() { return Summary; }
        public CalendarEvent setSummary(String value) { this.Summary = value; return this; }
        public String getDescription() { return Description; }
        public CalendarEvent setDescription(String value) { this.Description = value; return this; }
        public Integer getEventTypeId() { return EventTypeId; }
        public CalendarEvent setEventTypeId(Integer value) { this.EventTypeId = value; return this; }
        public Boolean isRecurrence() { return Recurrence; }
        public CalendarEvent setRecurrence(Boolean value) { this.Recurrence = value; return this; }
        public String getRecurrenceFrequency() { return RecurrenceFrequency; }
        public CalendarEvent setRecurrenceFrequency(String value) { this.RecurrenceFrequency = value; return this; }
        public String getRecurrenceBy() { return RecurrenceBy; }
        public CalendarEvent setRecurrenceBy(String value) { this.RecurrenceBy = value; return this; }
        public String getRecurrenceByValue() { return RecurrenceByValue; }
        public CalendarEvent setRecurrenceByValue(String value) { this.RecurrenceByValue = value; return this; }
        public Date getRecurrenceUntil() { return RecurrenceUntil; }
        public CalendarEvent setRecurrenceUntil(Date value) { this.RecurrenceUntil = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public CalendarEvent setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public String getCreatedByName() { return CreatedByName; }
        public CalendarEvent setCreatedByName(String value) { this.CreatedByName = value; return this; }
        public Date getDateCreated() { return DateCreated; }
        public CalendarEvent setDateCreated(Date value) { this.DateCreated = value; return this; }
        public String getModifiedBy() { return ModifiedBy; }
        public CalendarEvent setModifiedBy(String value) { this.ModifiedBy = value; return this; }
        public Date getDateModified() { return DateModified; }
        public CalendarEvent setDateModified(Date value) { this.DateModified = value; return this; }
        public Boolean isDeleted() { return Deleted; }
        public CalendarEvent setDeleted(Boolean value) { this.Deleted = value; return this; }
        public String getTimeZone() { return TimeZone; }
        public CalendarEvent setTimeZone(String value) { this.TimeZone = value; return this; }
        public Integer getOffset() { return Offset; }
        public CalendarEvent setOffset(Integer value) { this.Offset = value; return this; }
        public Date getTextReminderSentDate() { return TextReminderSentDate; }
        public CalendarEvent setTextReminderSentDate(Date value) { this.TextReminderSentDate = value; return this; }
        public Boolean isConfirmed() { return Confirmed; }
        public CalendarEvent setConfirmed(Boolean value) { this.Confirmed = value; return this; }
        public String getConfirmationTextId() { return ConfirmationTextId; }
        public CalendarEvent setConfirmationTextId(String value) { this.ConfirmationTextId = value; return this; }
        public String getFirstTextReminderId() { return FirstTextReminderId; }
        public CalendarEvent setFirstTextReminderId(String value) { this.FirstTextReminderId = value; return this; }
        public String getSecondTextReminderId() { return SecondTextReminderId; }
        public CalendarEvent setSecondTextReminderId(String value) { this.SecondTextReminderId = value; return this; }
        public UUID getLocationUID() { return LocationUID; }
        public CalendarEvent setLocationUID(UUID value) { this.LocationUID = value; return this; }
        public Date getAgentReminderSentDate() { return AgentReminderSentDate; }
        public CalendarEvent setAgentReminderSentDate(Date value) { this.AgentReminderSentDate = value; return this; }
        public Integer getContactId() { return ContactId; }
        public CalendarEvent setContactId(Integer value) { this.ContactId = value; return this; }
        public Boolean getIsPrivate() { return IsPrivate; }
        public CalendarEvent setIsPrivate(Boolean value) { this.IsPrivate = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public CalendarEvent setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getJobID() { return JobID; }
        public CalendarEvent setJobID(Integer value) { this.JobID = value; return this; }
        public Date getProjectStartDate() { return ProjectStartDate; }
        public CalendarEvent setProjectStartDate(Date value) { this.ProjectStartDate = value; return this; }
        public Date getProjectEndDate() { return ProjectEndDate; }
        public CalendarEvent setProjectEndDate(Date value) { this.ProjectEndDate = value; return this; }
        public Date getMaxCrewEndDate() { return MaxCrewEndDate; }
        public CalendarEvent setMaxCrewEndDate(Date value) { this.MaxCrewEndDate = value; return this; }
        public Date getMaxEquipmentEndDate() { return MaxEquipmentEndDate; }
        public CalendarEvent setMaxEquipmentEndDate(Date value) { this.MaxEquipmentEndDate = value; return this; }
        public UUID getCheckInId() { return CheckInId; }
        public CalendarEvent setCheckInId(UUID value) { this.CheckInId = value; return this; }
        public Boolean isAllDay() { return AllDay; }
        public CalendarEvent setAllDay(Boolean value) { this.AllDay = value; return this; }
        public String getJobName() { return JobName; }
        public CalendarEvent setJobName(String value) { this.JobName = value; return this; }
        public String getJobStatusName() { return JobStatusName; }
        public CalendarEvent setJobStatusName(String value) { this.JobStatusName = value; return this; }
        public Integer getJobStatusId() { return JobStatusId; }
        public CalendarEvent setJobStatusId(Integer value) { this.JobStatusId = value; return this; }
        public String getProjectName() { return ProjectName; }
        public CalendarEvent setProjectName(String value) { this.ProjectName = value; return this; }
        public Integer getResourceId() { return ResourceId; }
        public CalendarEvent setResourceId(Integer value) { this.ResourceId = value; return this; }
        public String getResourceName() { return ResourceName; }
        public CalendarEvent setResourceName(String value) { this.ResourceName = value; return this; }
        public Date getOriginalEventStart() { return Original_EventStart; }
        public CalendarEvent setOriginalEventStart(Date value) { this.Original_EventStart = value; return this; }
        public Boolean isOriginalRecurrence() { return Original_Recurrence; }
        public CalendarEvent setOriginalRecurrence(Boolean value) { this.Original_Recurrence = value; return this; }
        public String getOriginalRecurrenceFrequency() { return Original_RecurrenceFrequency; }
        public CalendarEvent setOriginalRecurrenceFrequency(String value) { this.Original_RecurrenceFrequency = value; return this; }
        public String getOriginalRecurrenceBy() { return Original_RecurrenceBy; }
        public CalendarEvent setOriginalRecurrenceBy(String value) { this.Original_RecurrenceBy = value; return this; }
        public String getOriginalRecurrenceByValue() { return Original_RecurrenceByValue; }
        public CalendarEvent setOriginalRecurrenceByValue(String value) { this.Original_RecurrenceByValue = value; return this; }
        public Date getOriginalRecurrenceUntil() { return Original_RecurrenceUntil; }
        public CalendarEvent setOriginalRecurrenceUntil(Date value) { this.Original_RecurrenceUntil = value; return this; }
        public String getChecksum() { return Checksum; }
        public CalendarEvent setChecksum(String value) { this.Checksum = value; return this; }
    }

}

Java JobScheduleRequest 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/Job/Schedule/{JobID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	JobID: 0
}
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
		}
	},
	JobSchedule: 
	[
		{
			CalendarEventId: 0,
			CalendarId: 00000000000000000000000000000000,
			EventStart: 0001-01-01,
			EventEnd: 0001-01-01,
			Location: String,
			Summary: String,
			Description: String,
			EventTypeId: 0,
			Recurrence: False,
			RecurrenceFrequency: String,
			RecurrenceBy: String,
			RecurrenceByValue: String,
			RecurrenceUntil: 0001-01-01,
			CreatedBy: String,
			CreatedByName: String,
			DateCreated: 0001-01-01,
			ModifiedBy: String,
			DateModified: 0001-01-01,
			Deleted: False,
			TimeZone: String,
			Offset: 0,
			TextReminderSentDate: 0001-01-01,
			Confirmed: False,
			ConfirmationTextId: String,
			FirstTextReminderId: String,
			SecondTextReminderId: String,
			LocationUID: 00000000000000000000000000000000,
			AgentReminderSentDate: 0001-01-01,
			ContactId: 0,
			IsPrivate: False,
			ProjectID: 0,
			JobID: 0,
			ProjectStartDate: 0001-01-01,
			ProjectEndDate: 0001-01-01,
			MaxCrewEndDate: 0001-01-01,
			MaxEquipmentEndDate: 0001-01-01,
			CheckInId: 00000000000000000000000000000000,
			AllDay: False,
			JobName: String,
			JobStatusName: String,
			JobStatusId: 0,
			ProjectName: String,
			ResourceId: 0,
			ResourceName: String,
			Original_EventStart: 0001-01-01,
			Original_Recurrence: False,
			Original_RecurrenceFrequency: String,
			Original_RecurrenceBy: String,
			Original_RecurrenceByValue: String,
			Original_RecurrenceUntil: 0001-01-01,
			Checksum: String
		}
	]
}