Trendsic Platform Service

<back to all web services

JobCrewMemberRequest

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

public class dtos
{

    public static class JobCrewMemberRequest
    {
        public Integer ProjectID = null;
        public Integer JobID = null;
        public Integer CrewMemberID = null;
        public Integer AddRemove = null;
        
        public Integer getProjectID() { return ProjectID; }
        public JobCrewMemberRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getJobID() { return JobID; }
        public JobCrewMemberRequest setJobID(Integer value) { this.JobID = value; return this; }
        public Integer getCrewMemberID() { return CrewMemberID; }
        public JobCrewMemberRequest setCrewMemberID(Integer value) { this.CrewMemberID = value; return this; }
        public Integer getAddRemove() { return AddRemove; }
        public JobCrewMemberRequest setAddRemove(Integer value) { this.AddRemove = value; return this; }
    }

    public static class JobResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<Job> Job = new ArrayList<Job>();
        public Boolean RequiresConfirm = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public JobResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<Job> getJob() { return Job; }
        public JobResponse setJob(ArrayList<Job> value) { this.Job = value; return this; }
        public Boolean isRequiresConfirm() { return RequiresConfirm; }
        public JobResponse setRequiresConfirm(Boolean value) { this.RequiresConfirm = value; return this; }
    }

    public static class Job
    {
        public Integer JobID = null;
        public String JobName = null;
        public Integer JobTypeID = null;
        public Date ExpectedStartDate = null;
        public Date ActualStartDate = null;
        public Date ExpectedCompletionDate = null;
        public Date ActualEndDate = null;
        public Boolean Active = null;
        public UUID CreatedByUID = null;
        public Integer ProjectID = null;
        public Integer StatusId = null;
        public Boolean AdvancedScheduling = null;
        public Boolean ShowTimes = null;
        public ArrayList<CalendarEvent> Schedule = new ArrayList<CalendarEvent>();
        
        public Integer getJobID() { return JobID; }
        public Job setJobID(Integer value) { this.JobID = value; return this; }
        public String getJobName() { return JobName; }
        public Job setJobName(String value) { this.JobName = value; return this; }
        public Integer getJobTypeID() { return JobTypeID; }
        public Job setJobTypeID(Integer value) { this.JobTypeID = value; return this; }
        public Date getExpectedStartDate() { return ExpectedStartDate; }
        public Job setExpectedStartDate(Date value) { this.ExpectedStartDate = value; return this; }
        public Date getActualStartDate() { return ActualStartDate; }
        public Job setActualStartDate(Date value) { this.ActualStartDate = value; return this; }
        public Date getExpectedCompletionDate() { return ExpectedCompletionDate; }
        public Job setExpectedCompletionDate(Date value) { this.ExpectedCompletionDate = value; return this; }
        public Date getActualEndDate() { return ActualEndDate; }
        public Job setActualEndDate(Date value) { this.ActualEndDate = value; return this; }
        public Boolean isActive() { return Active; }
        public Job setActive(Boolean value) { this.Active = value; return this; }
        public UUID getCreatedByUID() { return CreatedByUID; }
        public Job setCreatedByUID(UUID value) { this.CreatedByUID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public Job setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getStatusId() { return StatusId; }
        public Job setStatusId(Integer value) { this.StatusId = value; return this; }
        public Boolean isAdvancedScheduling() { return AdvancedScheduling; }
        public Job setAdvancedScheduling(Boolean value) { this.AdvancedScheduling = value; return this; }
        public Boolean isShowTimes() { return ShowTimes; }
        public Job setShowTimes(Boolean value) { this.ShowTimes = value; return this; }
        public ArrayList<CalendarEvent> getSchedule() { return Schedule; }
        public Job setSchedule(ArrayList<CalendarEvent> value) { this.Schedule = 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 JobCrewMemberRequest DTOs

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

HTTP + XML

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

PUT /v1/Job/crewMember HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<JobCrewMemberRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AddRemove>0</AddRemove>
  <CrewMemberID>0</CrewMemberID>
  <JobID>0</JobID>
  <ProjectID>0</ProjectID>
</JobCrewMemberRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<JobResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Job>
    <Job>
      <Active>false</Active>
      <ActualEndDate>0001-01-01T00:00:00</ActualEndDate>
      <ActualStartDate>0001-01-01T00:00:00</ActualStartDate>
      <AdvancedScheduling>false</AdvancedScheduling>
      <CreatedByUID>00000000-0000-0000-0000-000000000000</CreatedByUID>
      <ExpectedCompletionDate>0001-01-01T00:00:00</ExpectedCompletionDate>
      <ExpectedStartDate>0001-01-01T00:00:00</ExpectedStartDate>
      <JobID>0</JobID>
      <JobName>String</JobName>
      <JobTypeID>0</JobTypeID>
      <ProjectID>0</ProjectID>
      <Schedule>
        <CalendarEvent>
          <AgentReminderSentDate>0001-01-01T00:00:00</AgentReminderSentDate>
          <AllDay>false</AllDay>
          <CalendarEventId>0</CalendarEventId>
          <CalendarId>00000000-0000-0000-0000-000000000000</CalendarId>
          <CheckInId>00000000-0000-0000-0000-000000000000</CheckInId>
          <Checksum>String</Checksum>
          <ConfirmationTextId>String</ConfirmationTextId>
          <Confirmed>false</Confirmed>
          <ContactId>0</ContactId>
          <CreatedBy>String</CreatedBy>
          <CreatedByName>String</CreatedByName>
          <DateCreated>0001-01-01T00:00:00</DateCreated>
          <DateModified>0001-01-01T00:00:00</DateModified>
          <Deleted>false</Deleted>
          <Description>String</Description>
          <EventEnd>0001-01-01T00:00:00</EventEnd>
          <EventStart>0001-01-01T00:00:00</EventStart>
          <EventTypeId>0</EventTypeId>
          <FirstTextReminderId>String</FirstTextReminderId>
          <IsPrivate>false</IsPrivate>
          <JobID>0</JobID>
          <JobName>String</JobName>
          <JobStatusId>0</JobStatusId>
          <JobStatusName>String</JobStatusName>
          <Location>String</Location>
          <LocationUID>00000000-0000-0000-0000-000000000000</LocationUID>
          <MaxCrewEndDate>0001-01-01T00:00:00</MaxCrewEndDate>
          <MaxEquipmentEndDate>0001-01-01T00:00:00</MaxEquipmentEndDate>
          <ModifiedBy>String</ModifiedBy>
          <Offset>0</Offset>
          <Original_EventStart>0001-01-01T00:00:00</Original_EventStart>
          <Original_Recurrence>false</Original_Recurrence>
          <Original_RecurrenceBy>String</Original_RecurrenceBy>
          <Original_RecurrenceByValue>String</Original_RecurrenceByValue>
          <Original_RecurrenceFrequency>String</Original_RecurrenceFrequency>
          <Original_RecurrenceUntil>0001-01-01T00:00:00</Original_RecurrenceUntil>
          <ProjectEndDate>0001-01-01T00:00:00</ProjectEndDate>
          <ProjectID>0</ProjectID>
          <ProjectName>String</ProjectName>
          <ProjectStartDate>0001-01-01T00:00:00</ProjectStartDate>
          <Recurrence>false</Recurrence>
          <RecurrenceBy>String</RecurrenceBy>
          <RecurrenceByValue>String</RecurrenceByValue>
          <RecurrenceFrequency>String</RecurrenceFrequency>
          <RecurrenceUntil>0001-01-01T00:00:00</RecurrenceUntil>
          <ResourceId>0</ResourceId>
          <ResourceName>String</ResourceName>
          <SecondTextReminderId>String</SecondTextReminderId>
          <Summary>String</Summary>
          <TextReminderSentDate>0001-01-01T00:00:00</TextReminderSentDate>
          <TimeZone>String</TimeZone>
        </CalendarEvent>
      </Schedule>
      <ShowTimes>false</ShowTimes>
      <StatusId>0</StatusId>
    </Job>
  </Job>
  <RequiresConfirm>false</RequiresConfirm>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</JobResponse>