Trendsic Platform Service

<back to all web services

PmJobRequest

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

public class dtos
{

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

    public static class PmJobResponse
    {
        public PmJob Job = null;
        public ResponseStatus ResponseStatus = null;
        
        public PmJob getJob() { return Job; }
        public PmJobResponse setJob(PmJob value) { this.Job = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PmJobResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class PmJob
    {
        public Integer JobID = null;
        public String Name = null;
        public String Description = null;
        public String Status = null;
        public String StartDate = null;
        public String EndDate = null;
        public Integer CrewCount = null;
        public Double BudgetedHours = null;
        public Integer EquipmentCount = null;
        public Integer MaterialCount = null;
        public Double CrewCost = null;
        public Double EquipCost = null;
        public Double MatCost = null;
        public Double Cost = null;
        public Boolean NoCrew = null;
        public Boolean EquipConflict = null;
        public Boolean MaterialGap = null;
        public Integer ReadyPct = null;
        public String Priority = null;
        public ArrayList<String> Tags = new ArrayList<String>();
        public ArrayList<PmJobCrew> Crew = new ArrayList<PmJobCrew>();
        public ArrayList<PmJobResource> Equipment = new ArrayList<PmJobResource>();
        public ArrayList<PmJobResource> Materials = new ArrayList<PmJobResource>();
        
        public Integer getJobID() { return JobID; }
        public PmJob setJobID(Integer value) { this.JobID = value; return this; }
        public String getName() { return Name; }
        public PmJob setName(String value) { this.Name = value; return this; }
        public String getDescription() { return Description; }
        public PmJob setDescription(String value) { this.Description = value; return this; }
        public String getStatus() { return Status; }
        public PmJob setStatus(String value) { this.Status = value; return this; }
        public String getStartDate() { return StartDate; }
        public PmJob setStartDate(String value) { this.StartDate = value; return this; }
        public String getEndDate() { return EndDate; }
        public PmJob setEndDate(String value) { this.EndDate = value; return this; }
        public Integer getCrewCount() { return CrewCount; }
        public PmJob setCrewCount(Integer value) { this.CrewCount = value; return this; }
        public Double getBudgetedHours() { return BudgetedHours; }
        public PmJob setBudgetedHours(Double value) { this.BudgetedHours = value; return this; }
        public Integer getEquipmentCount() { return EquipmentCount; }
        public PmJob setEquipmentCount(Integer value) { this.EquipmentCount = value; return this; }
        public Integer getMaterialCount() { return MaterialCount; }
        public PmJob setMaterialCount(Integer value) { this.MaterialCount = value; return this; }
        public Double getCrewCost() { return CrewCost; }
        public PmJob setCrewCost(Double value) { this.CrewCost = value; return this; }
        public Double getEquipCost() { return EquipCost; }
        public PmJob setEquipCost(Double value) { this.EquipCost = value; return this; }
        public Double getMatCost() { return MatCost; }
        public PmJob setMatCost(Double value) { this.MatCost = value; return this; }
        public Double getCost() { return Cost; }
        public PmJob setCost(Double value) { this.Cost = value; return this; }
        public Boolean isNoCrew() { return NoCrew; }
        public PmJob setNoCrew(Boolean value) { this.NoCrew = value; return this; }
        public Boolean isEquipConflict() { return EquipConflict; }
        public PmJob setEquipConflict(Boolean value) { this.EquipConflict = value; return this; }
        public Boolean isMaterialGap() { return MaterialGap; }
        public PmJob setMaterialGap(Boolean value) { this.MaterialGap = value; return this; }
        public Integer getReadyPct() { return ReadyPct; }
        public PmJob setReadyPct(Integer value) { this.ReadyPct = value; return this; }
        public String getPriority() { return Priority; }
        public PmJob setPriority(String value) { this.Priority = value; return this; }
        public ArrayList<String> getTags() { return Tags; }
        public PmJob setTags(ArrayList<String> value) { this.Tags = value; return this; }
        public ArrayList<PmJobCrew> getCrew() { return Crew; }
        public PmJob setCrew(ArrayList<PmJobCrew> value) { this.Crew = value; return this; }
        public ArrayList<PmJobResource> getEquipment() { return Equipment; }
        public PmJob setEquipment(ArrayList<PmJobResource> value) { this.Equipment = value; return this; }
        public ArrayList<PmJobResource> getMaterials() { return Materials; }
        public PmJob setMaterials(ArrayList<PmJobResource> value) { this.Materials = value; return this; }
    }

    public static class PmJobCrew
    {
        public Integer ContactID = null;
        public String Name = null;
        public Double Rate = null;
        public Double BudgetedHours = null;
        public Boolean IsOpen = null;
        
        public Integer getContactID() { return ContactID; }
        public PmJobCrew setContactID(Integer value) { this.ContactID = value; return this; }
        public String getName() { return Name; }
        public PmJobCrew setName(String value) { this.Name = value; return this; }
        public Double getRate() { return Rate; }
        public PmJobCrew setRate(Double value) { this.Rate = value; return this; }
        public Double getBudgetedHours() { return BudgetedHours; }
        public PmJobCrew setBudgetedHours(Double value) { this.BudgetedHours = value; return this; }
        public Boolean getIsOpen() { return IsOpen; }
        public PmJobCrew setIsOpen(Boolean value) { this.IsOpen = value; return this; }
    }

    public static class PmJobResource
    {
        public Integer Id = null;
        public String Name = null;
        public Double Amount = null;
        public Integer Qty = null;
        public String Unit = null;
        
        public Integer getId() { return Id; }
        public PmJobResource setId(Integer value) { this.Id = value; return this; }
        public String getName() { return Name; }
        public PmJobResource setName(String value) { this.Name = value; return this; }
        public Double getAmount() { return Amount; }
        public PmJobResource setAmount(Double value) { this.Amount = value; return this; }
        public Integer getQty() { return Qty; }
        public PmJobResource setQty(Integer value) { this.Qty = value; return this; }
        public String getUnit() { return Unit; }
        public PmJobResource setUnit(String value) { this.Unit = value; return this; }
    }

}

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

GET /v1/pm/job/{JobID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PmJobResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Job>
    <BudgetedHours>0</BudgetedHours>
    <Cost>0</Cost>
    <Crew>
      <PmJobCrew>
        <BudgetedHours>0</BudgetedHours>
        <ContactID>0</ContactID>
        <IsOpen>false</IsOpen>
        <Name>String</Name>
        <Rate>0</Rate>
      </PmJobCrew>
    </Crew>
    <CrewCost>0</CrewCost>
    <CrewCount>0</CrewCount>
    <Description>String</Description>
    <EndDate>String</EndDate>
    <EquipConflict>false</EquipConflict>
    <EquipCost>0</EquipCost>
    <Equipment>
      <PmJobResource>
        <Amount>0</Amount>
        <Id>0</Id>
        <Name>String</Name>
        <Qty>0</Qty>
        <Unit>String</Unit>
      </PmJobResource>
    </Equipment>
    <EquipmentCount>0</EquipmentCount>
    <JobID>0</JobID>
    <MatCost>0</MatCost>
    <MaterialCount>0</MaterialCount>
    <MaterialGap>false</MaterialGap>
    <Materials>
      <PmJobResource>
        <Amount>0</Amount>
        <Id>0</Id>
        <Name>String</Name>
        <Qty>0</Qty>
        <Unit>String</Unit>
      </PmJobResource>
    </Materials>
    <Name>String</Name>
    <NoCrew>false</NoCrew>
    <Priority>String</Priority>
    <ReadyPct>0</ReadyPct>
    <StartDate>String</StartDate>
    <Status>String</Status>
    <Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Tags>
  </Job>
  <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>
</PmJobResponse>