Trendsic Platform Service

<back to all web services

EquipmentUsageRequest

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

public class dtos
{

    public static class EquipmentUsageRequest
    {
        public Integer EquipmentID = null;
        
        public Integer getEquipmentID() { return EquipmentID; }
        public EquipmentUsageRequest setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
    }

    public static class EquipmentUsageResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<EquipmentUsageEntry> Usage = new ArrayList<EquipmentUsageEntry>();
        public ArrayList<VehicleDriverUse> Drivers = new ArrayList<VehicleDriverUse>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public EquipmentUsageResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<EquipmentUsageEntry> getUsage() { return Usage; }
        public EquipmentUsageResponse setUsage(ArrayList<EquipmentUsageEntry> value) { this.Usage = value; return this; }
        public ArrayList<VehicleDriverUse> getDrivers() { return Drivers; }
        public EquipmentUsageResponse setDrivers(ArrayList<VehicleDriverUse> value) { this.Drivers = value; return this; }
    }

    public static class EquipmentUsageEntry
    {
        public Integer ProjectJobEquipmentID = null;
        public Integer ProjectID = null;
        public String ProjectName = null;
        public Integer JobID = null;
        public String JobName = null;
        public Integer StatusID = null;
        public Date StartDate = null;
        public Date EndDate = null;
        public Integer BookingCount = null;
        
        public Integer getProjectJobEquipmentID() { return ProjectJobEquipmentID; }
        public EquipmentUsageEntry setProjectJobEquipmentID(Integer value) { this.ProjectJobEquipmentID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public EquipmentUsageEntry setProjectID(Integer value) { this.ProjectID = value; return this; }
        public String getProjectName() { return ProjectName; }
        public EquipmentUsageEntry setProjectName(String value) { this.ProjectName = value; return this; }
        public Integer getJobID() { return JobID; }
        public EquipmentUsageEntry setJobID(Integer value) { this.JobID = value; return this; }
        public String getJobName() { return JobName; }
        public EquipmentUsageEntry setJobName(String value) { this.JobName = value; return this; }
        public Integer getStatusID() { return StatusID; }
        public EquipmentUsageEntry setStatusID(Integer value) { this.StatusID = value; return this; }
        public Date getStartDate() { return StartDate; }
        public EquipmentUsageEntry setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public EquipmentUsageEntry setEndDate(Date value) { this.EndDate = value; return this; }
        public Integer getBookingCount() { return BookingCount; }
        public EquipmentUsageEntry setBookingCount(Integer value) { this.BookingCount = value; return this; }
    }

    public static class VehicleDriverUse
    {
        public Integer SessionId = null;
        public Integer ContactID = null;
        public String Name = null;
        public String Board = null;
        public Date StartUtc = null;
        public Date EndUtc = null;
        public String EndReason = null;
        
        public Integer getSessionId() { return SessionId; }
        public VehicleDriverUse setSessionId(Integer value) { this.SessionId = value; return this; }
        public Integer getContactID() { return ContactID; }
        public VehicleDriverUse setContactID(Integer value) { this.ContactID = value; return this; }
        public String getName() { return Name; }
        public VehicleDriverUse setName(String value) { this.Name = value; return this; }
        public String getBoard() { return Board; }
        public VehicleDriverUse setBoard(String value) { this.Board = value; return this; }
        public Date getStartUtc() { return StartUtc; }
        public VehicleDriverUse setStartUtc(Date value) { this.StartUtc = value; return this; }
        public Date getEndUtc() { return EndUtc; }
        public VehicleDriverUse setEndUtc(Date value) { this.EndUtc = value; return this; }
        public String getEndReason() { return EndReason; }
        public VehicleDriverUse setEndReason(String value) { this.EndReason = value; return this; }
    }

}

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

GET /v1/Equipment/{EquipmentID}/usage HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Usage":[{"ProjectJobEquipmentID":0,"ProjectID":0,"ProjectName":"String","JobID":0,"JobName":"String","StatusID":0,"StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","BookingCount":0}],"Drivers":[{"SessionId":0,"ContactID":0,"Name":"String","Board":"String","StartUtc":"0001-01-01T00:00:00.0000000","EndUtc":"0001-01-01T00:00:00.0000000","EndReason":"String"}]}