Trendsic Platform Service

<back to all web services

EquipmentVehicleStatusRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/Equipment/{EquipmentID}/vehicle/status
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class EquipmentVehicleStatusRequest
    {
        public Integer EquipmentID = null;
        public String VehicleStatus = null;
        
        public Integer getEquipmentID() { return EquipmentID; }
        public EquipmentVehicleStatusRequest setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
        public String getVehicleStatus() { return VehicleStatus; }
        public EquipmentVehicleStatusRequest setVehicleStatus(String value) { this.VehicleStatus = value; return this; }
    }

    public static class EquipmentVehicleResponse
    {
        public EquipmentVehicle Vehicle = null;
        public ArrayList<EquipmentVehicle> Fleet = new ArrayList<EquipmentVehicle>();
        public ResponseStatus ResponseStatus = null;
        
        public EquipmentVehicle getVehicle() { return Vehicle; }
        public EquipmentVehicleResponse setVehicle(EquipmentVehicle value) { this.Vehicle = value; return this; }
        public ArrayList<EquipmentVehicle> getFleet() { return Fleet; }
        public EquipmentVehicleResponse setFleet(ArrayList<EquipmentVehicle> value) { this.Fleet = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public EquipmentVehicleResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class EquipmentVehicle
    {
        public Integer EquipmentVehicleID = null;
        public Integer EquipmentID = null;
        public String UnitNumber = null;
        public String VehicleType = null;
        public String CapacityText = null;
        public BigDecimal CapacityTons = null;
        public BigDecimal DeckFeet = null;
        public String Plate = null;
        public String VIN = null;
        public String GpsUnit = null;
        public Date InsuranceExpires = null;
        public Date InspectionDue = null;
        public String Capabilities = null;
        public String VehicleStatus = null;
        public Integer VendorID = null;
        public String EquipmentName = null;
        public String Ownership = null;
        public String RentalVendor = null;
        public String TruckCode = null;
        public String RigCode = null;
        public String BoardModule = null;
        public Date UpdatedAt = null;
        
        public Integer getEquipmentVehicleID() { return EquipmentVehicleID; }
        public EquipmentVehicle setEquipmentVehicleID(Integer value) { this.EquipmentVehicleID = value; return this; }
        public Integer getEquipmentID() { return EquipmentID; }
        public EquipmentVehicle setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
        public String getUnitNumber() { return UnitNumber; }
        public EquipmentVehicle setUnitNumber(String value) { this.UnitNumber = value; return this; }
        public String getVehicleType() { return VehicleType; }
        public EquipmentVehicle setVehicleType(String value) { this.VehicleType = value; return this; }
        public String getCapacityText() { return CapacityText; }
        public EquipmentVehicle setCapacityText(String value) { this.CapacityText = value; return this; }
        public BigDecimal getCapacityTons() { return CapacityTons; }
        public EquipmentVehicle setCapacityTons(BigDecimal value) { this.CapacityTons = value; return this; }
        public BigDecimal getDeckFeet() { return DeckFeet; }
        public EquipmentVehicle setDeckFeet(BigDecimal value) { this.DeckFeet = value; return this; }
        public String getPlate() { return Plate; }
        public EquipmentVehicle setPlate(String value) { this.Plate = value; return this; }
        public String getVin() { return VIN; }
        public EquipmentVehicle setVin(String value) { this.VIN = value; return this; }
        public String getGpsUnit() { return GpsUnit; }
        public EquipmentVehicle setGpsUnit(String value) { this.GpsUnit = value; return this; }
        public Date getInsuranceExpires() { return InsuranceExpires; }
        public EquipmentVehicle setInsuranceExpires(Date value) { this.InsuranceExpires = value; return this; }
        public Date getInspectionDue() { return InspectionDue; }
        public EquipmentVehicle setInspectionDue(Date value) { this.InspectionDue = value; return this; }
        public String getCapabilities() { return Capabilities; }
        public EquipmentVehicle setCapabilities(String value) { this.Capabilities = value; return this; }
        public String getVehicleStatus() { return VehicleStatus; }
        public EquipmentVehicle setVehicleStatus(String value) { this.VehicleStatus = value; return this; }
        public Integer getVendorID() { return VendorID; }
        public EquipmentVehicle setVendorID(Integer value) { this.VendorID = value; return this; }
        public String getEquipmentName() { return EquipmentName; }
        public EquipmentVehicle setEquipmentName(String value) { this.EquipmentName = value; return this; }
        public String getOwnership() { return Ownership; }
        public EquipmentVehicle setOwnership(String value) { this.Ownership = value; return this; }
        public String getRentalVendor() { return RentalVendor; }
        public EquipmentVehicle setRentalVendor(String value) { this.RentalVendor = value; return this; }
        public String getTruckCode() { return TruckCode; }
        public EquipmentVehicle setTruckCode(String value) { this.TruckCode = value; return this; }
        public String getRigCode() { return RigCode; }
        public EquipmentVehicle setRigCode(String value) { this.RigCode = value; return this; }
        public String getBoardModule() { return BoardModule; }
        public EquipmentVehicle setBoardModule(String value) { this.BoardModule = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public EquipmentVehicle setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
    }

}

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

POST /v1/Equipment/{EquipmentID}/vehicle/status HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EquipmentVehicleStatusRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <EquipmentID>0</EquipmentID>
  <VehicleStatus>String</VehicleStatus>
</EquipmentVehicleStatusRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EquipmentVehicleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Fleet>
    <EquipmentVehicle>
      <BoardModule>String</BoardModule>
      <Capabilities>String</Capabilities>
      <CapacityText>String</CapacityText>
      <CapacityTons>0</CapacityTons>
      <DeckFeet>0</DeckFeet>
      <EquipmentID>0</EquipmentID>
      <EquipmentName>String</EquipmentName>
      <EquipmentVehicleID>0</EquipmentVehicleID>
      <GpsUnit>String</GpsUnit>
      <InspectionDue>0001-01-01T00:00:00</InspectionDue>
      <InsuranceExpires>0001-01-01T00:00:00</InsuranceExpires>
      <Ownership>String</Ownership>
      <Plate>String</Plate>
      <RentalVendor>String</RentalVendor>
      <RigCode>String</RigCode>
      <TruckCode>String</TruckCode>
      <UnitNumber>String</UnitNumber>
      <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
      <VIN>String</VIN>
      <VehicleStatus>String</VehicleStatus>
      <VehicleType>String</VehicleType>
      <VendorID>0</VendorID>
    </EquipmentVehicle>
  </Fleet>
  <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>
  <Vehicle>
    <BoardModule>String</BoardModule>
    <Capabilities>String</Capabilities>
    <CapacityText>String</CapacityText>
    <CapacityTons>0</CapacityTons>
    <DeckFeet>0</DeckFeet>
    <EquipmentID>0</EquipmentID>
    <EquipmentName>String</EquipmentName>
    <EquipmentVehicleID>0</EquipmentVehicleID>
    <GpsUnit>String</GpsUnit>
    <InspectionDue>0001-01-01T00:00:00</InspectionDue>
    <InsuranceExpires>0001-01-01T00:00:00</InsuranceExpires>
    <Ownership>String</Ownership>
    <Plate>String</Plate>
    <RentalVendor>String</RentalVendor>
    <RigCode>String</RigCode>
    <TruckCode>String</TruckCode>
    <UnitNumber>String</UnitNumber>
    <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
    <VIN>String</VIN>
    <VehicleStatus>String</VehicleStatus>
    <VehicleType>String</VehicleType>
    <VendorID>0</VendorID>
  </Vehicle>
</EquipmentVehicleResponse>