Trendsic Platform Service

<back to all web services

CrewAssignmentsProjectRequest

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

public class dtos
{

    public static class CrewAssignmentsProjectRequest
    {
        public Date SelectedDate = null;
        public ArrayList<Project> Project = new ArrayList<Project>();
        
        public Date getSelectedDate() { return SelectedDate; }
        public CrewAssignmentsProjectRequest setSelectedDate(Date value) { this.SelectedDate = value; return this; }
        public ArrayList<Project> getProject() { return Project; }
        public CrewAssignmentsProjectRequest setProject(ArrayList<Project> value) { this.Project = value; return this; }
    }

    public static class Project
    {
        public Integer ProjectID = null;
        public UUID ProjectUID = null;
        public String ProjectName = null;
        public String ImageURL = null;
        public String ImageKey = null;
        public String ClientName = null;
        public String ClientPhone = null;
        public String ClientEmail = null;
        public Integer ProjectManagerID = null;
        public String ProjectManagerName = null;
        public Date StartDate = null;
        public Date EndDate = null;
        public Date ActualStartDate = null;
        public Date ActualEndDate = null;
        public Integer JobCount = null;
        public Integer CrewMemberCount = null;
        public Integer EquipmentCount = null;
        public Integer MaterialCount = null;
        public Short ProjectStatusID = null;
        public String ProjectStatusDescription = null;
        public BigDecimal Budget = null;
        public BigDecimal CostToDate = null;
        public String ProjectLocation = null;
        public String ProjectType = null;
        public String ProjectSponsor = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        public String ProjectDescription = null;
        public String Scope = null;
        public Integer StatusId = null;
        
        public Integer getProjectID() { return ProjectID; }
        public Project setProjectID(Integer value) { this.ProjectID = value; return this; }
        public UUID getProjectUID() { return ProjectUID; }
        public Project setProjectUID(UUID value) { this.ProjectUID = value; return this; }
        public String getProjectName() { return ProjectName; }
        public Project setProjectName(String value) { this.ProjectName = value; return this; }
        public String getImageURL() { return ImageURL; }
        public Project setImageURL(String value) { this.ImageURL = value; return this; }
        public String getImageKey() { return ImageKey; }
        public Project setImageKey(String value) { this.ImageKey = value; return this; }
        public String getClientName() { return ClientName; }
        public Project setClientName(String value) { this.ClientName = value; return this; }
        public String getClientPhone() { return ClientPhone; }
        public Project setClientPhone(String value) { this.ClientPhone = value; return this; }
        public String getClientEmail() { return ClientEmail; }
        public Project setClientEmail(String value) { this.ClientEmail = value; return this; }
        public Integer getProjectManagerID() { return ProjectManagerID; }
        public Project setProjectManagerID(Integer value) { this.ProjectManagerID = value; return this; }
        public String getProjectManagerName() { return ProjectManagerName; }
        public Project setProjectManagerName(String value) { this.ProjectManagerName = value; return this; }
        public Date getStartDate() { return StartDate; }
        public Project setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public Project setEndDate(Date value) { this.EndDate = value; return this; }
        public Date getActualStartDate() { return ActualStartDate; }
        public Project setActualStartDate(Date value) { this.ActualStartDate = value; return this; }
        public Date getActualEndDate() { return ActualEndDate; }
        public Project setActualEndDate(Date value) { this.ActualEndDate = value; return this; }
        public Integer getJobCount() { return JobCount; }
        public Project setJobCount(Integer value) { this.JobCount = value; return this; }
        public Integer getCrewMemberCount() { return CrewMemberCount; }
        public Project setCrewMemberCount(Integer value) { this.CrewMemberCount = value; return this; }
        public Integer getEquipmentCount() { return EquipmentCount; }
        public Project setEquipmentCount(Integer value) { this.EquipmentCount = value; return this; }
        public Integer getMaterialCount() { return MaterialCount; }
        public Project setMaterialCount(Integer value) { this.MaterialCount = value; return this; }
        public Short getProjectStatusID() { return ProjectStatusID; }
        public Project setProjectStatusID(Short value) { this.ProjectStatusID = value; return this; }
        public String getProjectStatusDescription() { return ProjectStatusDescription; }
        public Project setProjectStatusDescription(String value) { this.ProjectStatusDescription = value; return this; }
        public BigDecimal getBudget() { return Budget; }
        public Project setBudget(BigDecimal value) { this.Budget = value; return this; }
        public BigDecimal getCostToDate() { return CostToDate; }
        public Project setCostToDate(BigDecimal value) { this.CostToDate = value; return this; }
        public String getProjectLocation() { return ProjectLocation; }
        public Project setProjectLocation(String value) { this.ProjectLocation = value; return this; }
        public String getProjectType() { return ProjectType; }
        public Project setProjectType(String value) { this.ProjectType = value; return this; }
        public String getProjectSponsor() { return ProjectSponsor; }
        public Project setProjectSponsor(String value) { this.ProjectSponsor = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public Project setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public Project setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public Project setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
        public String getProjectDescription() { return ProjectDescription; }
        public Project setProjectDescription(String value) { this.ProjectDescription = value; return this; }
        public String getScope() { return Scope; }
        public Project setScope(String value) { this.Scope = value; return this; }
        public Integer getStatusId() { return StatusId; }
        public Project setStatusId(Integer value) { this.StatusId = value; return this; }
    }

    public static class CrewAssignmentsProjectResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<Project> Project = new ArrayList<Project>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CrewAssignmentsProjectResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<Project> getProject() { return Project; }
        public CrewAssignmentsProjectResponse setProject(ArrayList<Project> value) { this.Project = value; return this; }
    }

}

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

{
	SelectedDate: 0001-01-01,
	Project: 
	[
		{
			ProjectID: 0,
			ProjectUID: 00000000000000000000000000000000,
			ProjectName: String,
			ImageURL: String,
			ImageKey: String,
			ClientName: String,
			ClientPhone: String,
			ClientEmail: String,
			ProjectManagerID: 0,
			ProjectManagerName: String,
			StartDate: 0001-01-01,
			EndDate: 0001-01-01,
			ActualStartDate: 0001-01-01,
			ActualEndDate: 0001-01-01,
			JobCount: 0,
			CrewMemberCount: 0,
			EquipmentCount: 0,
			MaterialCount: 0,
			ProjectStatusID: 0,
			ProjectStatusDescription: String,
			Budget: 0,
			CostToDate: 0,
			ProjectLocation: String,
			ProjectType: String,
			ProjectSponsor: String,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01,
			ProjectDescription: String,
			Scope: String,
			StatusId: 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
		}
	},
	Project: 
	[
		{
			ProjectID: 0,
			ProjectUID: 00000000000000000000000000000000,
			ProjectName: String,
			ImageURL: String,
			ImageKey: String,
			ClientName: String,
			ClientPhone: String,
			ClientEmail: String,
			ProjectManagerID: 0,
			ProjectManagerName: String,
			StartDate: 0001-01-01,
			EndDate: 0001-01-01,
			ActualStartDate: 0001-01-01,
			ActualEndDate: 0001-01-01,
			JobCount: 0,
			CrewMemberCount: 0,
			EquipmentCount: 0,
			MaterialCount: 0,
			ProjectStatusID: 0,
			ProjectStatusDescription: String,
			Budget: 0,
			CostToDate: 0,
			ProjectLocation: String,
			ProjectType: String,
			ProjectSponsor: String,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01,
			ProjectDescription: String,
			Scope: String,
			StatusId: 0
		}
	]
}