Trendsic Platform Service

<back to all web services

ProjectCostRequest

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

public class dtos
{

    public static class ProjectCostRequest
    {
        public Integer ProjectID = null;
        
        public Integer getProjectID() { return ProjectID; }
        public ProjectCostRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
    }

    public static class ProjectCostResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ProjectCost ProjectCost = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ProjectCostResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ProjectCost getProjectCost() { return ProjectCost; }
        public ProjectCostResponse setProjectCost(ProjectCost value) { this.ProjectCost = value; return this; }
    }

    public static class ProjectCost
    {
        public Integer ProjectID = null;
        public BigDecimal Budget = null;
        public BigDecimal CrewCost = null;
        public BigDecimal EquipmentCost = null;
        public BigDecimal MaterialCost = null;
        public BigDecimal TotalCost = null;
        public BigDecimal BilledCrewCost = null;
        public BigDecimal BilledEquipmentCost = null;
        public BigDecimal BilledMaterialCost = null;
        public BigDecimal BilledTotalCost = null;
        
        public Integer getProjectID() { return ProjectID; }
        public ProjectCost setProjectID(Integer value) { this.ProjectID = value; return this; }
        public BigDecimal getBudget() { return Budget; }
        public ProjectCost setBudget(BigDecimal value) { this.Budget = value; return this; }
        public BigDecimal getCrewCost() { return CrewCost; }
        public ProjectCost setCrewCost(BigDecimal value) { this.CrewCost = value; return this; }
        public BigDecimal getEquipmentCost() { return EquipmentCost; }
        public ProjectCost setEquipmentCost(BigDecimal value) { this.EquipmentCost = value; return this; }
        public BigDecimal getMaterialCost() { return MaterialCost; }
        public ProjectCost setMaterialCost(BigDecimal value) { this.MaterialCost = value; return this; }
        public BigDecimal getTotalCost() { return TotalCost; }
        public ProjectCost setTotalCost(BigDecimal value) { this.TotalCost = value; return this; }
        public BigDecimal getBilledCrewCost() { return BilledCrewCost; }
        public ProjectCost setBilledCrewCost(BigDecimal value) { this.BilledCrewCost = value; return this; }
        public BigDecimal getBilledEquipmentCost() { return BilledEquipmentCost; }
        public ProjectCost setBilledEquipmentCost(BigDecimal value) { this.BilledEquipmentCost = value; return this; }
        public BigDecimal getBilledMaterialCost() { return BilledMaterialCost; }
        public ProjectCost setBilledMaterialCost(BigDecimal value) { this.BilledMaterialCost = value; return this; }
        public BigDecimal getBilledTotalCost() { return BilledTotalCost; }
        public ProjectCost setBilledTotalCost(BigDecimal value) { this.BilledTotalCost = value; return this; }
    }

}

Java ProjectCostRequest 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/Project/Cost/{ProjectID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ProjectID: 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
		}
	},
	ProjectCost: 
	{
		ProjectID: 0,
		Budget: 0,
		CrewCost: 0,
		EquipmentCost: 0,
		MaterialCost: 0,
		TotalCost: 0,
		BilledCrewCost: 0,
		BilledEquipmentCost: 0,
		BilledMaterialCost: 0,
		BilledTotalCost: 0
	}
}