Trendsic Platform Service

<back to all web services

PmProjectDetailRequest

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

public class dtos
{

    public static class PmProjectDetailRequest
    {
        public String Uid = null;
        
        public String getUid() { return Uid; }
        public PmProjectDetailRequest setUid(String value) { this.Uid = value; return this; }
    }

    public static class PmProjectDetail
    {
        public Integer ProjectID = null;
        public String ProjectUID = null;
        public String Name = null;
        public String Client = null;
        public String ProjectType = null;
        public String Status = null;
        public String Branch = null;
        public String StartDate = null;
        public String EndDate = null;
        public String Description = null;
        public PmFinance Finance = null;
        public PmReadiness Readiness = null;
        public ArrayList<PmJob> Jobs = new ArrayList<PmJob>();
        public ArrayList<PmEquipmentRow> Equipment = new ArrayList<PmEquipmentRow>();
        public ArrayList<PmMaterialRow> Materials = new ArrayList<PmMaterialRow>();
        public ArrayList<PmCalendarBar> Calendar = new ArrayList<PmCalendarBar>();
        public ArrayList<PmCatalogItem> ProjectStatuses = new ArrayList<PmCatalogItem>();
        public ResponseStatus ResponseStatus = null;
        
        public Integer getProjectID() { return ProjectID; }
        public PmProjectDetail setProjectID(Integer value) { this.ProjectID = value; return this; }
        public String getProjectUID() { return ProjectUID; }
        public PmProjectDetail setProjectUID(String value) { this.ProjectUID = value; return this; }
        public String getName() { return Name; }
        public PmProjectDetail setName(String value) { this.Name = value; return this; }
        public String getClient() { return Client; }
        public PmProjectDetail setClient(String value) { this.Client = value; return this; }
        public String getProjectType() { return ProjectType; }
        public PmProjectDetail setProjectType(String value) { this.ProjectType = value; return this; }
        public String getStatus() { return Status; }
        public PmProjectDetail setStatus(String value) { this.Status = value; return this; }
        public String getBranch() { return Branch; }
        public PmProjectDetail setBranch(String value) { this.Branch = value; return this; }
        public String getStartDate() { return StartDate; }
        public PmProjectDetail setStartDate(String value) { this.StartDate = value; return this; }
        public String getEndDate() { return EndDate; }
        public PmProjectDetail setEndDate(String value) { this.EndDate = value; return this; }
        public String getDescription() { return Description; }
        public PmProjectDetail setDescription(String value) { this.Description = value; return this; }
        public PmFinance getFinance() { return Finance; }
        public PmProjectDetail setFinance(PmFinance value) { this.Finance = value; return this; }
        public PmReadiness getReadiness() { return Readiness; }
        public PmProjectDetail setReadiness(PmReadiness value) { this.Readiness = value; return this; }
        public ArrayList<PmJob> getJobs() { return Jobs; }
        public PmProjectDetail setJobs(ArrayList<PmJob> value) { this.Jobs = value; return this; }
        public ArrayList<PmEquipmentRow> getEquipment() { return Equipment; }
        public PmProjectDetail setEquipment(ArrayList<PmEquipmentRow> value) { this.Equipment = value; return this; }
        public ArrayList<PmMaterialRow> getMaterials() { return Materials; }
        public PmProjectDetail setMaterials(ArrayList<PmMaterialRow> value) { this.Materials = value; return this; }
        public ArrayList<PmCalendarBar> getCalendar() { return Calendar; }
        public PmProjectDetail setCalendar(ArrayList<PmCalendarBar> value) { this.Calendar = value; return this; }
        public ArrayList<PmCatalogItem> getProjectStatuses() { return ProjectStatuses; }
        public PmProjectDetail setProjectStatuses(ArrayList<PmCatalogItem> value) { this.ProjectStatuses = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PmProjectDetail setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class PmFinance
    {
        public Double Budget = null;
        public Double Spent = null;
        public Double EstimatedCost = null;
        public Double CrewCost = null;
        public Double EquipCost = null;
        public Double MatCost = null;
        public Double Variance = null;
        public Integer HealthPct = null;
        public Integer SpentPct = null;
        public Integer ProgressPct = null;
        
        public Double getBudget() { return Budget; }
        public PmFinance setBudget(Double value) { this.Budget = value; return this; }
        public Double getSpent() { return Spent; }
        public PmFinance setSpent(Double value) { this.Spent = value; return this; }
        public Double getEstimatedCost() { return EstimatedCost; }
        public PmFinance setEstimatedCost(Double value) { this.EstimatedCost = value; return this; }
        public Double getCrewCost() { return CrewCost; }
        public PmFinance setCrewCost(Double value) { this.CrewCost = value; return this; }
        public Double getEquipCost() { return EquipCost; }
        public PmFinance setEquipCost(Double value) { this.EquipCost = value; return this; }
        public Double getMatCost() { return MatCost; }
        public PmFinance setMatCost(Double value) { this.MatCost = value; return this; }
        public Double getVariance() { return Variance; }
        public PmFinance setVariance(Double value) { this.Variance = value; return this; }
        public Integer getHealthPct() { return HealthPct; }
        public PmFinance setHealthPct(Integer value) { this.HealthPct = value; return this; }
        public Integer getSpentPct() { return SpentPct; }
        public PmFinance setSpentPct(Integer value) { this.SpentPct = value; return this; }
        public Integer getProgressPct() { return ProgressPct; }
        public PmFinance setProgressPct(Integer value) { this.ProgressPct = value; return this; }
    }

    public static class PmReadiness
    {
        public Integer JobsNoCrew = null;
        public Integer OpenRoles = null;
        public Integer EquipmentConflicts = null;
        public Integer MaterialGaps = null;
        public Integer TotalGaps = null;
        public Integer ReadyPct = null;
        
        public Integer getJobsNoCrew() { return JobsNoCrew; }
        public PmReadiness setJobsNoCrew(Integer value) { this.JobsNoCrew = value; return this; }
        public Integer getOpenRoles() { return OpenRoles; }
        public PmReadiness setOpenRoles(Integer value) { this.OpenRoles = value; return this; }
        public Integer getEquipmentConflicts() { return EquipmentConflicts; }
        public PmReadiness setEquipmentConflicts(Integer value) { this.EquipmentConflicts = value; return this; }
        public Integer getMaterialGaps() { return MaterialGaps; }
        public PmReadiness setMaterialGaps(Integer value) { this.MaterialGaps = value; return this; }
        public Integer getTotalGaps() { return TotalGaps; }
        public PmReadiness setTotalGaps(Integer value) { this.TotalGaps = value; return this; }
        public Integer getReadyPct() { return ReadyPct; }
        public PmReadiness setReadyPct(Integer value) { this.ReadyPct = 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 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 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 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 static class PmEquipmentRow
    {
        public Integer EquipmentID = null;
        public String Name = null;
        public String EquipmentType = null;
        public String SerialNumber = null;
        public String UsedByJobs = null;
        public Boolean Available = null;
        public ArrayList<PmConflict> Conflicts = new ArrayList<PmConflict>();
        public Integer MaintenanceIntervalDays = null;
        public String LastServiceDate = null;
        public String NextServiceDate = null;
        public String MaintenanceState = null;
        
        public Integer getEquipmentID() { return EquipmentID; }
        public PmEquipmentRow setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
        public String getName() { return Name; }
        public PmEquipmentRow setName(String value) { this.Name = value; return this; }
        public String getEquipmentType() { return EquipmentType; }
        public PmEquipmentRow setEquipmentType(String value) { this.EquipmentType = value; return this; }
        public String getSerialNumber() { return SerialNumber; }
        public PmEquipmentRow setSerialNumber(String value) { this.SerialNumber = value; return this; }
        public String getUsedByJobs() { return UsedByJobs; }
        public PmEquipmentRow setUsedByJobs(String value) { this.UsedByJobs = value; return this; }
        public Boolean isAvailable() { return Available; }
        public PmEquipmentRow setAvailable(Boolean value) { this.Available = value; return this; }
        public ArrayList<PmConflict> getConflicts() { return Conflicts; }
        public PmEquipmentRow setConflicts(ArrayList<PmConflict> value) { this.Conflicts = value; return this; }
        public Integer getMaintenanceIntervalDays() { return MaintenanceIntervalDays; }
        public PmEquipmentRow setMaintenanceIntervalDays(Integer value) { this.MaintenanceIntervalDays = value; return this; }
        public String getLastServiceDate() { return LastServiceDate; }
        public PmEquipmentRow setLastServiceDate(String value) { this.LastServiceDate = value; return this; }
        public String getNextServiceDate() { return NextServiceDate; }
        public PmEquipmentRow setNextServiceDate(String value) { this.NextServiceDate = value; return this; }
        public String getMaintenanceState() { return MaintenanceState; }
        public PmEquipmentRow setMaintenanceState(String value) { this.MaintenanceState = value; return this; }
    }

    public static class PmConflict
    {
        public String ProjectName = null;
        public String JobName = null;
        public String StartDate = null;
        public String EndDate = null;
        
        public String getProjectName() { return ProjectName; }
        public PmConflict setProjectName(String value) { this.ProjectName = value; return this; }
        public String getJobName() { return JobName; }
        public PmConflict setJobName(String value) { this.JobName = value; return this; }
        public String getStartDate() { return StartDate; }
        public PmConflict setStartDate(String value) { this.StartDate = value; return this; }
        public String getEndDate() { return EndDate; }
        public PmConflict setEndDate(String value) { this.EndDate = value; return this; }
    }

    public static class PmMaterialRow
    {
        public Integer MaterialID = null;
        public String Name = null;
        public String MaterialType = null;
        public Integer OnHand = null;
        public Integer NeededByJobs = null;
        public Integer QtyNeeded = null;
        public Integer ToOrder = null;
        public Double UnitCost = null;
        public Double LineCost = null;
        public Integer ProjectMaterialID = null;
        public Integer StatusID = null;
        public String Status = null;
        public String Supplier = null;
        public String OrderDate = null;
        public String DeliveryDate = null;
        public Boolean Shortfall = null;
        
        public Integer getMaterialID() { return MaterialID; }
        public PmMaterialRow setMaterialID(Integer value) { this.MaterialID = value; return this; }
        public String getName() { return Name; }
        public PmMaterialRow setName(String value) { this.Name = value; return this; }
        public String getMaterialType() { return MaterialType; }
        public PmMaterialRow setMaterialType(String value) { this.MaterialType = value; return this; }
        public Integer getOnHand() { return OnHand; }
        public PmMaterialRow setOnHand(Integer value) { this.OnHand = value; return this; }
        public Integer getNeededByJobs() { return NeededByJobs; }
        public PmMaterialRow setNeededByJobs(Integer value) { this.NeededByJobs = value; return this; }
        public Integer getQtyNeeded() { return QtyNeeded; }
        public PmMaterialRow setQtyNeeded(Integer value) { this.QtyNeeded = value; return this; }
        public Integer getToOrder() { return ToOrder; }
        public PmMaterialRow setToOrder(Integer value) { this.ToOrder = value; return this; }
        public Double getUnitCost() { return UnitCost; }
        public PmMaterialRow setUnitCost(Double value) { this.UnitCost = value; return this; }
        public Double getLineCost() { return LineCost; }
        public PmMaterialRow setLineCost(Double value) { this.LineCost = value; return this; }
        public Integer getProjectMaterialID() { return ProjectMaterialID; }
        public PmMaterialRow setProjectMaterialID(Integer value) { this.ProjectMaterialID = value; return this; }
        public Integer getStatusID() { return StatusID; }
        public PmMaterialRow setStatusID(Integer value) { this.StatusID = value; return this; }
        public String getStatus() { return Status; }
        public PmMaterialRow setStatus(String value) { this.Status = value; return this; }
        public String getSupplier() { return Supplier; }
        public PmMaterialRow setSupplier(String value) { this.Supplier = value; return this; }
        public String getOrderDate() { return OrderDate; }
        public PmMaterialRow setOrderDate(String value) { this.OrderDate = value; return this; }
        public String getDeliveryDate() { return DeliveryDate; }
        public PmMaterialRow setDeliveryDate(String value) { this.DeliveryDate = value; return this; }
        public Boolean isShortfall() { return Shortfall; }
        public PmMaterialRow setShortfall(Boolean value) { this.Shortfall = value; return this; }
    }

    public static class PmCalendarBar
    {
        public Integer JobID = null;
        public String Name = null;
        public String StartDate = null;
        public String EndDate = null;
        public String Status = null;
        
        public Integer getJobID() { return JobID; }
        public PmCalendarBar setJobID(Integer value) { this.JobID = value; return this; }
        public String getName() { return Name; }
        public PmCalendarBar setName(String value) { this.Name = value; return this; }
        public String getStartDate() { return StartDate; }
        public PmCalendarBar setStartDate(String value) { this.StartDate = value; return this; }
        public String getEndDate() { return EndDate; }
        public PmCalendarBar setEndDate(String value) { this.EndDate = value; return this; }
        public String getStatus() { return Status; }
        public PmCalendarBar setStatus(String value) { this.Status = value; return this; }
    }

    public static class PmCatalogItem
    {
        public Integer Id = null;
        public String Name = null;
        public Double Amount = null;
        
        public Integer getId() { return Id; }
        public PmCatalogItem setId(Integer value) { this.Id = value; return this; }
        public String getName() { return Name; }
        public PmCatalogItem setName(String value) { this.Name = value; return this; }
        public Double getAmount() { return Amount; }
        public PmCatalogItem setAmount(Double value) { this.Amount = value; return this; }
    }

}

Java PmProjectDetailRequest 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/pm/project/{Uid} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ProjectID":0,"ProjectUID":"String","Name":"String","Client":"String","ProjectType":"String","Status":"String","Branch":"String","StartDate":"String","EndDate":"String","Description":"String","Finance":{"Budget":0,"Spent":0,"EstimatedCost":0,"CrewCost":0,"EquipCost":0,"MatCost":0,"Variance":0,"HealthPct":0,"SpentPct":0,"ProgressPct":0},"Readiness":{"JobsNoCrew":0,"OpenRoles":0,"EquipmentConflicts":0,"MaterialGaps":0,"TotalGaps":0,"ReadyPct":0},"Jobs":[{"JobID":0,"Name":"String","Description":"String","Status":"String","StartDate":"String","EndDate":"String","CrewCount":0,"BudgetedHours":0,"EquipmentCount":0,"MaterialCount":0,"CrewCost":0,"EquipCost":0,"MatCost":0,"Cost":0,"NoCrew":false,"EquipConflict":false,"MaterialGap":false,"ReadyPct":0,"Crew":[{"ContactID":0,"Name":"String","Rate":0,"BudgetedHours":0,"IsOpen":false}],"Equipment":[{"Id":0,"Name":"String","Amount":0,"Qty":0}],"Materials":[{"Id":0,"Name":"String","Amount":0,"Qty":0}]}],"Equipment":[{"EquipmentID":0,"Name":"String","EquipmentType":"String","SerialNumber":"String","UsedByJobs":"String","Available":false,"Conflicts":[{"ProjectName":"String","JobName":"String","StartDate":"String","EndDate":"String"}],"MaintenanceIntervalDays":0,"LastServiceDate":"String","NextServiceDate":"String","MaintenanceState":"String"}],"Materials":[{"MaterialID":0,"Name":"String","MaterialType":"String","OnHand":0,"NeededByJobs":0,"QtyNeeded":0,"ToOrder":0,"UnitCost":0,"LineCost":0,"ProjectMaterialID":0,"StatusID":0,"Status":"String","Supplier":"String","OrderDate":"String","DeliveryDate":"String","Shortfall":false}],"Calendar":[{"JobID":0,"Name":"String","StartDate":"String","EndDate":"String","Status":"String"}],"ProjectStatuses":[{"Id":0,"Name":"String","Amount":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}