Trendsic Platform Service

<back to all web services

MaterialProjectJobsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/Project/{ProjectID}/material/{MaterialID}/Jobs
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class MaterialProjectJobsRequest
    {
        public Integer ProjectID = null;
        public Integer MaterialID = null;
        
        public Integer getProjectID() { return ProjectID; }
        public MaterialProjectJobsRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getMaterialID() { return MaterialID; }
        public MaterialProjectJobsRequest setMaterialID(Integer value) { this.MaterialID = value; return this; }
    }

    public static class MaterialProjectJobsResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<Job> Jobs = new ArrayList<Job>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public MaterialProjectJobsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<Job> getJobs() { return Jobs; }
        public MaterialProjectJobsResponse setJobs(ArrayList<Job> value) { this.Jobs = value; return this; }
    }

    public static class Job
    {
        public Integer JobID = null;
        public String JobName = null;
        public String Description = 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 Boolean HasScheduledWorkers = null;
        public Boolean HasScheduledPlaceholders = null;
        public String ClientApprovalStatus = null;
        public BigDecimal InternalCost = null;
        public BigDecimal CostToClient = null;
        public Location Location = null;
        public Integer ProjectLocationID = null;
        public Integer ProjectLocationAreaID = null;
        public String ProjectLocationName = null;
        public String ProjectLocationAddress1 = null;
        public String ProjectLocationAddress2 = null;
        public String ProjectLocationCity = null;
        public String ProjectLocationState = null;
        public String ProjectLocationZip = null;
        public String ProjectLocationAreaName = null;
        
        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 String getDescription() { return Description; }
        public Job setDescription(String value) { this.Description = 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 Boolean isHasScheduledWorkers() { return HasScheduledWorkers; }
        public Job setHasScheduledWorkers(Boolean value) { this.HasScheduledWorkers = value; return this; }
        public Boolean isHasScheduledPlaceholders() { return HasScheduledPlaceholders; }
        public Job setHasScheduledPlaceholders(Boolean value) { this.HasScheduledPlaceholders = value; return this; }
        public String getClientApprovalStatus() { return ClientApprovalStatus; }
        public Job setClientApprovalStatus(String value) { this.ClientApprovalStatus = value; return this; }
        public BigDecimal getInternalCost() { return InternalCost; }
        public Job setInternalCost(BigDecimal value) { this.InternalCost = value; return this; }
        public BigDecimal getCostToClient() { return CostToClient; }
        public Job setCostToClient(BigDecimal value) { this.CostToClient = value; return this; }
        public Location getLocation() { return Location; }
        public Job setLocation(Location value) { this.Location = value; return this; }
        public Integer getProjectLocationID() { return ProjectLocationID; }
        public Job setProjectLocationID(Integer value) { this.ProjectLocationID = value; return this; }
        public Integer getProjectLocationAreaID() { return ProjectLocationAreaID; }
        public Job setProjectLocationAreaID(Integer value) { this.ProjectLocationAreaID = value; return this; }
        public String getProjectLocationName() { return ProjectLocationName; }
        public Job setProjectLocationName(String value) { this.ProjectLocationName = value; return this; }
        public String getProjectLocationAddress1() { return ProjectLocationAddress1; }
        public Job setProjectLocationAddress1(String value) { this.ProjectLocationAddress1 = value; return this; }
        public String getProjectLocationAddress2() { return ProjectLocationAddress2; }
        public Job setProjectLocationAddress2(String value) { this.ProjectLocationAddress2 = value; return this; }
        public String getProjectLocationCity() { return ProjectLocationCity; }
        public Job setProjectLocationCity(String value) { this.ProjectLocationCity = value; return this; }
        public String getProjectLocationState() { return ProjectLocationState; }
        public Job setProjectLocationState(String value) { this.ProjectLocationState = value; return this; }
        public String getProjectLocationZip() { return ProjectLocationZip; }
        public Job setProjectLocationZip(String value) { this.ProjectLocationZip = value; return this; }
        public String getProjectLocationAreaName() { return ProjectLocationAreaName; }
        public Job setProjectLocationAreaName(String value) { this.ProjectLocationAreaName = 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; }
    }

    public static class Location
    {
        public UUID Id = null;
        public UUID ClientId = null;
        public String Name = null;
        public String Address1 = null;
        public String Address2 = null;
        public String City = null;
        public String State = null;
        public String Zip = null;
        public String Phone = null;
        public String Fax = null;
        public String URL = null;
        public String Email = null;
        public String TimeZone = null;
        public Boolean Active = null;
        public Date EntDate = null;
        public Date ModDate = null;
        public String LocationImage = null;
        
        public UUID getId() { return Id; }
        public Location setId(UUID value) { this.Id = value; return this; }
        public UUID getClientId() { return ClientId; }
        public Location setClientId(UUID value) { this.ClientId = value; return this; }
        public String getName() { return Name; }
        public Location setName(String value) { this.Name = value; return this; }
        public String getAddress1() { return Address1; }
        public Location setAddress1(String value) { this.Address1 = value; return this; }
        public String getAddress2() { return Address2; }
        public Location setAddress2(String value) { this.Address2 = value; return this; }
        public String getCity() { return City; }
        public Location setCity(String value) { this.City = value; return this; }
        public String getState() { return State; }
        public Location setState(String value) { this.State = value; return this; }
        public String getZip() { return Zip; }
        public Location setZip(String value) { this.Zip = value; return this; }
        public String getPhone() { return Phone; }
        public Location setPhone(String value) { this.Phone = value; return this; }
        public String getFax() { return Fax; }
        public Location setFax(String value) { this.Fax = value; return this; }
        public String getUrl() { return URL; }
        public Location setUrl(String value) { this.URL = value; return this; }
        public String getEmail() { return Email; }
        public Location setEmail(String value) { this.Email = value; return this; }
        public String getTimeZone() { return TimeZone; }
        public Location setTimeZone(String value) { this.TimeZone = value; return this; }
        public Boolean isActive() { return Active; }
        public Location setActive(Boolean value) { this.Active = value; return this; }
        public Date getEntDate() { return EntDate; }
        public Location setEntDate(Date value) { this.EntDate = value; return this; }
        public Date getModDate() { return ModDate; }
        public Location setModDate(Date value) { this.ModDate = value; return this; }
        public String getLocationImage() { return LocationImage; }
        public Location setLocationImage(String value) { this.LocationImage = value; return this; }
    }

}

Java MaterialProjectJobsRequest DTOs

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

HTTP + OTHER

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

GET /v1/Project/{ProjectID}/material/{MaterialID}/Jobs HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Jobs":[{"JobID":0,"JobName":"String","Description":"String","JobTypeID":0,"ExpectedStartDate":"0001-01-01T00:00:00.0000000","ActualStartDate":"0001-01-01T00:00:00.0000000","ExpectedCompletionDate":"0001-01-01T00:00:00.0000000","ActualEndDate":"0001-01-01T00:00:00.0000000","Active":false,"CreatedByUID":"00000000000000000000000000000000","ProjectID":0,"StatusId":0,"AdvancedScheduling":false,"ShowTimes":false,"Schedule":[{"CalendarEventId":0,"CalendarId":"00000000000000000000000000000000","EventStart":"0001-01-01T00:00:00.0000000","EventEnd":"0001-01-01T00:00:00.0000000","Location":"String","Summary":"String","Description":"String","EventTypeId":0,"Recurrence":false,"RecurrenceFrequency":"String","RecurrenceBy":"String","RecurrenceByValue":"String","RecurrenceUntil":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedByName":"String","DateCreated":"0001-01-01T00:00:00.0000000","ModifiedBy":"String","DateModified":"0001-01-01T00:00:00.0000000","Deleted":false,"TimeZone":"String","Offset":0,"TextReminderSentDate":"0001-01-01T00:00:00.0000000","Confirmed":false,"ConfirmationTextId":"String","FirstTextReminderId":"String","SecondTextReminderId":"String","LocationUID":"00000000000000000000000000000000","AgentReminderSentDate":"0001-01-01T00:00:00.0000000","ContactId":0,"IsPrivate":false,"ProjectID":0,"JobID":0,"ProjectStartDate":"0001-01-01T00:00:00.0000000","ProjectEndDate":"0001-01-01T00:00:00.0000000","MaxCrewEndDate":"0001-01-01T00:00:00.0000000","MaxEquipmentEndDate":"0001-01-01T00:00:00.0000000","CheckInId":"00000000000000000000000000000000","AllDay":false,"JobName":"String","JobStatusName":"String","JobStatusId":0,"ProjectName":"String","ResourceId":0,"ResourceName":"String","Original_EventStart":"0001-01-01T00:00:00.0000000","Original_Recurrence":false,"Original_RecurrenceFrequency":"String","Original_RecurrenceBy":"String","Original_RecurrenceByValue":"String","Original_RecurrenceUntil":"0001-01-01T00:00:00.0000000","Checksum":"String"}],"HasScheduledWorkers":false,"HasScheduledPlaceholders":false,"ClientApprovalStatus":"String","InternalCost":0,"CostToClient":0,"Location":{"Id":"00000000000000000000000000000000","ClientId":"00000000000000000000000000000000","Name":"String","Address1":"String","Address2":"String","City":"String","State":"String","Zip":"String","Phone":"String","Fax":"String","URL":"String","Email":"String","TimeZone":"String","Active":false,"EntDate":"0001-01-01T00:00:00.0000000","ModDate":"0001-01-01T00:00:00.0000000","LocationImage":"String"},"ProjectLocationID":0,"ProjectLocationAreaID":0,"ProjectLocationName":"String","ProjectLocationAddress1":"String","ProjectLocationAddress2":"String","ProjectLocationCity":"String","ProjectLocationState":"String","ProjectLocationZip":"String","ProjectLocationAreaName":"String"}]}