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 .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/fieldlog/prefill HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FieldLogPrefillResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Crew>
    <FieldLogCrewPrefill>
      <ContactId>0</ContactId>
      <CostCode>String</CostCode>
      <DefaultHours>0</DefaultHours>
      <Name>String</Name>
      <Role>String</Role>
    </FieldLogCrewPrefill>
  </Crew>
  <Equipment>
    <FieldLogEquipmentPrefill>
      <Code>String</Code>
      <EquipmentId>0</EquipmentId>
      <Name>String</Name>
    </FieldLogEquipmentPrefill>
  </Equipment>
  <PayItems>
    <FieldLogPayItemPrefill>
      <Code>String</Code>
      <Name>String</Name>
      <ToDate>0</ToDate>
      <Total>0</Total>
      <Unit>String</Unit>
    </FieldLogPayItemPrefill>
  </PayItems>
  <PriorDayFilled>false</PriorDayFilled>
  <ProjectName>String</ProjectName>
  <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>
  <SolicitationNumber>String</SolicitationNumber>
  <StationRange>String</StationRange>
  <Subs>
    <FieldLogSubPrefill>
      <ContactId>0</ContactId>
      <Name>String</Name>
      <Trade>String</Trade>
    </FieldLogSubPrefill>
  </Subs>
</FieldLogPrefillResponse>