Trendsic Platform Service

<back to all web services

FieldLogPrefillRequest

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

public class dtos
{

    public static class FieldLogPrefillRequest
    {
        public Integer ProjectId = null;
        public String Date = null;
        
        public Integer getProjectId() { return ProjectId; }
        public FieldLogPrefillRequest setProjectId(Integer value) { this.ProjectId = value; return this; }
        public String getDate() { return Date; }
        public FieldLogPrefillRequest setDate(String value) { this.Date = value; return this; }
    }

    public static class FieldLogPrefillResponse
    {
        public ResponseStatus ResponseStatus = null;
        public String ProjectName = null;
        public String SolicitationNumber = null;
        public String StationRange = null;
        public ArrayList<FieldLogCrewPrefill> Crew = new ArrayList<FieldLogCrewPrefill>();
        public ArrayList<FieldLogEquipmentPrefill> Equipment = new ArrayList<FieldLogEquipmentPrefill>();
        public ArrayList<FieldLogPayItemPrefill> PayItems = new ArrayList<FieldLogPayItemPrefill>();
        public ArrayList<FieldLogSubPrefill> Subs = new ArrayList<FieldLogSubPrefill>();
        public Boolean PriorDayFilled = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FieldLogPrefillResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public String getProjectName() { return ProjectName; }
        public FieldLogPrefillResponse setProjectName(String value) { this.ProjectName = value; return this; }
        public String getSolicitationNumber() { return SolicitationNumber; }
        public FieldLogPrefillResponse setSolicitationNumber(String value) { this.SolicitationNumber = value; return this; }
        public String getStationRange() { return StationRange; }
        public FieldLogPrefillResponse setStationRange(String value) { this.StationRange = value; return this; }
        public ArrayList<FieldLogCrewPrefill> getCrew() { return Crew; }
        public FieldLogPrefillResponse setCrew(ArrayList<FieldLogCrewPrefill> value) { this.Crew = value; return this; }
        public ArrayList<FieldLogEquipmentPrefill> getEquipment() { return Equipment; }
        public FieldLogPrefillResponse setEquipment(ArrayList<FieldLogEquipmentPrefill> value) { this.Equipment = value; return this; }
        public ArrayList<FieldLogPayItemPrefill> getPayItems() { return PayItems; }
        public FieldLogPrefillResponse setPayItems(ArrayList<FieldLogPayItemPrefill> value) { this.PayItems = value; return this; }
        public ArrayList<FieldLogSubPrefill> getSubs() { return Subs; }
        public FieldLogPrefillResponse setSubs(ArrayList<FieldLogSubPrefill> value) { this.Subs = value; return this; }
        public Boolean isPriorDayFilled() { return PriorDayFilled; }
        public FieldLogPrefillResponse setPriorDayFilled(Boolean value) { this.PriorDayFilled = value; return this; }
    }

    public static class FieldLogCrewPrefill
    {
        public Integer ContactId = null;
        public String Name = null;
        public String Role = null;
        public Double DefaultHours = null;
        public String CostCode = null;
        
        public Integer getContactId() { return ContactId; }
        public FieldLogCrewPrefill setContactId(Integer value) { this.ContactId = value; return this; }
        public String getName() { return Name; }
        public FieldLogCrewPrefill setName(String value) { this.Name = value; return this; }
        public String getRole() { return Role; }
        public FieldLogCrewPrefill setRole(String value) { this.Role = value; return this; }
        public Double getDefaultHours() { return DefaultHours; }
        public FieldLogCrewPrefill setDefaultHours(Double value) { this.DefaultHours = value; return this; }
        public String getCostCode() { return CostCode; }
        public FieldLogCrewPrefill setCostCode(String value) { this.CostCode = value; return this; }
    }

    public static class FieldLogEquipmentPrefill
    {
        public Integer EquipmentId = null;
        public String Name = null;
        public String Code = null;
        
        public Integer getEquipmentId() { return EquipmentId; }
        public FieldLogEquipmentPrefill setEquipmentId(Integer value) { this.EquipmentId = value; return this; }
        public String getName() { return Name; }
        public FieldLogEquipmentPrefill setName(String value) { this.Name = value; return this; }
        public String getCode() { return Code; }
        public FieldLogEquipmentPrefill setCode(String value) { this.Code = value; return this; }
    }

    public static class FieldLogPayItemPrefill
    {
        public String Code = null;
        public String Name = null;
        public String Unit = null;
        public Double ToDate = null;
        public Double Total = null;
        
        public String getCode() { return Code; }
        public FieldLogPayItemPrefill setCode(String value) { this.Code = value; return this; }
        public String getName() { return Name; }
        public FieldLogPayItemPrefill setName(String value) { this.Name = value; return this; }
        public String getUnit() { return Unit; }
        public FieldLogPayItemPrefill setUnit(String value) { this.Unit = value; return this; }
        public Double getToDate() { return ToDate; }
        public FieldLogPayItemPrefill setToDate(Double value) { this.ToDate = value; return this; }
        public Double getTotal() { return Total; }
        public FieldLogPayItemPrefill setTotal(Double value) { this.Total = value; return this; }
    }

    public static class FieldLogSubPrefill
    {
        public Integer ContactId = null;
        public String Name = null;
        public String Trade = null;
        
        public Integer getContactId() { return ContactId; }
        public FieldLogSubPrefill setContactId(Integer value) { this.ContactId = value; return this; }
        public String getName() { return Name; }
        public FieldLogSubPrefill setName(String value) { this.Name = value; return this; }
        public String getTrade() { return Trade; }
        public FieldLogSubPrefill setTrade(String value) { this.Trade = value; return this; }
    }

}

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

GET /v1/fieldlog/prefill HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
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
		}
	},
	ProjectName: String,
	SolicitationNumber: String,
	StationRange: String,
	Crew: 
	[
		{
			ContactId: 0,
			Name: String,
			Role: String,
			DefaultHours: 0,
			CostCode: String
		}
	],
	Equipment: 
	[
		{
			EquipmentId: 0,
			Name: String,
			Code: String
		}
	],
	PayItems: 
	[
		{
			Code: String,
			Name: String,
			Unit: String,
			ToDate: 0,
			Total: 0
		}
	],
	Subs: 
	[
		{
			ContactId: 0,
			Name: String,
			Trade: String
		}
	],
	PriorDayFilled: False
}