| GET | /pulsit/triphistorydetail |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class PulsitTripHistoryDetailRequest extends ApiServiceRequest
{
public String PulsitModuleId = null;
public Integer PulsitStartId = null;
public Integer PulsitStopId = null;
public String getPulsitModuleId() { return PulsitModuleId; }
public PulsitTripHistoryDetailRequest setPulsitModuleId(String value) { this.PulsitModuleId = value; return this; }
public Integer getPulsitStartId() { return PulsitStartId; }
public PulsitTripHistoryDetailRequest setPulsitStartId(Integer value) { this.PulsitStartId = value; return this; }
public Integer getPulsitStopId() { return PulsitStopId; }
public PulsitTripHistoryDetailRequest setPulsitStopId(Integer value) { this.PulsitStopId = value; return this; }
}
public static class ApiServiceRequest implements IServiceRequest, IHasApiKey
{
/**
* The API Key required for authentication
*/
@ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
public String ApiKey = null;
public String getApiKey() { return ApiKey; }
public ApiServiceRequest setApiKey(String value) { this.ApiKey = value; return this; }
}
public static class PulsitTripHistoryDetailResponse extends ApiServiceResponse
{
public Double Distance = null;
public ArrayList<PulsitTripHistoryEvent> Events = null;
public Double getDistance() { return Distance; }
public PulsitTripHistoryDetailResponse setDistance(Double value) { this.Distance = value; return this; }
public ArrayList<PulsitTripHistoryEvent> getEvents() { return Events; }
public PulsitTripHistoryDetailResponse setEvents(ArrayList<PulsitTripHistoryEvent> value) { this.Events = value; return this; }
}
public static class ApiServiceResponse implements IServiceResponse
{
public String Description = null;
public String Heading = null;
public Boolean WasSuccessful = null;
public Object ModelState = null;
public String getDescription() { return Description; }
public ApiServiceResponse setDescription(String value) { this.Description = value; return this; }
public String getHeading() { return Heading; }
public ApiServiceResponse setHeading(String value) { this.Heading = value; return this; }
public Boolean isWasSuccessful() { return WasSuccessful; }
public ApiServiceResponse setWasSuccessful(Boolean value) { this.WasSuccessful = value; return this; }
public Object getModelState() { return ModelState; }
public ApiServiceResponse setModelState(Object value) { this.ModelState = value; return this; }
}
public static class PulsitTripHistoryEvent
{
public Double Latitude = null;
public Double Longitude = null;
public String Address = null;
public Integer Speed = null;
public Integer Heading = null;
public Integer VehicleBatteryVolts = null;
public Integer ModuleBatteryVolts = null;
public String EventDescription = null;
public Date EventTime = null;
public Double getLatitude() { return Latitude; }
public PulsitTripHistoryEvent setLatitude(Double value) { this.Latitude = value; return this; }
public Double getLongitude() { return Longitude; }
public PulsitTripHistoryEvent setLongitude(Double value) { this.Longitude = value; return this; }
public String getAddress() { return Address; }
public PulsitTripHistoryEvent setAddress(String value) { this.Address = value; return this; }
public Integer getSpeed() { return Speed; }
public PulsitTripHistoryEvent setSpeed(Integer value) { this.Speed = value; return this; }
public Integer getHeading() { return Heading; }
public PulsitTripHistoryEvent setHeading(Integer value) { this.Heading = value; return this; }
public Integer getVehicleBatteryVolts() { return VehicleBatteryVolts; }
public PulsitTripHistoryEvent setVehicleBatteryVolts(Integer value) { this.VehicleBatteryVolts = value; return this; }
public Integer getModuleBatteryVolts() { return ModuleBatteryVolts; }
public PulsitTripHistoryEvent setModuleBatteryVolts(Integer value) { this.ModuleBatteryVolts = value; return this; }
public String getEventDescription() { return EventDescription; }
public PulsitTripHistoryEvent setEventDescription(String value) { this.EventDescription = value; return this; }
public Date getEventTime() { return EventTime; }
public PulsitTripHistoryEvent setEventTime(Date value) { this.EventTime = value; return this; }
}
}
Java PulsitTripHistoryDetailRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /pulsit/triphistorydetail HTTP/1.1 Host: galaxymobile.api.client.prod.86degrees.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Distance":0,"Events":[{"Latitude":0,"Longitude":0,"Address":"String","Speed":0,"Heading":0,"VehicleBatteryVolts":0,"ModuleBatteryVolts":0,"EventDescription":"String","EventTime":"0001-01-01T00:00:00.0000000"}],"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}