| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PulsitTripHistoryDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebService.ClientApi.Services">
<Description xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Description>
<Heading xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Heading>
<ModelState xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base" />
<WasSuccessful xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">false</WasSuccessful>
<Distance>0</Distance>
<Events>
<PulsitTripHistoryEvent>
<Address>String</Address>
<EventDescription>String</EventDescription>
<EventTime>0001-01-01T00:00:00</EventTime>
<Heading>0</Heading>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<ModuleBatteryVolts>0</ModuleBatteryVolts>
<Speed>0</Speed>
<VehicleBatteryVolts>0</VehicleBatteryVolts>
</PulsitTripHistoryEvent>
</Events>
</PulsitTripHistoryDetailResponse>