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 .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"EquipmentID":0,"VehicleStatus":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Vehicle":{"EquipmentVehicleID":0,"EquipmentID":0,"UnitNumber":"String","VehicleType":"String","CapacityText":"String","CapacityTons":0,"DeckFeet":0,"Plate":"String","VIN":"String","GpsUnit":"String","InsuranceExpires":"0001-01-01T00:00:00.0000000","InspectionDue":"0001-01-01T00:00:00.0000000","Capabilities":"String","VehicleStatus":"String","VendorID":0,"EquipmentName":"String","Ownership":"String","RentalVendor":"String","TruckCode":"String","RigCode":"String","BoardModule":"String","UpdatedAt":"0001-01-01T00:00:00.0000000"},"Fleet":[{"EquipmentVehicleID":0,"EquipmentID":0,"UnitNumber":"String","VehicleType":"String","CapacityText":"String","CapacityTons":0,"DeckFeet":0,"Plate":"String","VIN":"String","GpsUnit":"String","InsuranceExpires":"0001-01-01T00:00:00.0000000","InspectionDue":"0001-01-01T00:00:00.0000000","Capabilities":"String","VehicleStatus":"String","VendorID":0,"EquipmentName":"String","Ownership":"String","RentalVendor":"String","TruckCode":"String","RigCode":"String","BoardModule":"String","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}