import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class PulsitModuleTripHistoryRequest extends ApiServiceRequest
{
public String PulsitModuleId = null;
public String StartDate = null;
public String EndDate = null;
public String getPulsitModuleId() { return PulsitModuleId; }
public PulsitModuleTripHistoryRequest setPulsitModuleId(String value) { this.PulsitModuleId = value; return this; }
public String getStartDate() { return StartDate; }
public PulsitModuleTripHistoryRequest setStartDate(String value) { this.StartDate = value; return this; }
public String getEndDate() { return EndDate; }
public PulsitModuleTripHistoryRequest setEndDate(String value) { this.EndDate = value; return this; }
}
public static class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo, IHasClientId
{
/**
* The API Key required for authentication
*/
@ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
public String ApiKey = null;
/**
* Latitude of the user making this request
*/
@ApiMember(DataType="double", Description="Latitude of the user making this request")
public Double Latitude = null;
/**
* Longitude of the user making this request
*/
@ApiMember(DataType="double", Description="Longitude of the user making this request")
public Double Longitude = null;
public String getApiKey() { return ApiKey; }
public ApiServiceRequest setApiKey(String value) { this.ApiKey = value; return this; }
public Double getLatitude() { return Latitude; }
public ApiServiceRequest setLatitude(Double value) { this.Latitude = value; return this; }
public Double getLongitude() { return Longitude; }
public ApiServiceRequest setLongitude(Double value) { this.Longitude = value; return this; }
}
public static class PulsitModuleTripHistoryResponse extends ApiServiceResponse
{
public ArrayList<PulsitTripHistoryItem> Trips = null;
public ArrayList<PulsitTripHistoryItem> getTrips() { return Trips; }
public PulsitModuleTripHistoryResponse setTrips(ArrayList<PulsitTripHistoryItem> value) { this.Trips = 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 PulsitTripHistoryItem
{
public String TripNumber = null;
public String StartPulsitId = null;
public Date StartEventTimeValue = null;
public String StartEventTime = null;
public Double StartLatitude = null;
public Double StartLongitude = null;
public String StartAddress = null;
public String StopPulsitId = null;
public String StopEventTime = null;
public Double StopLatitude = null;
public Double StopLongitude = null;
public String StopAddress = null;
public Double TripMinutes = null;
public String getTripNumber() { return TripNumber; }
public PulsitTripHistoryItem setTripNumber(String value) { this.TripNumber = value; return this; }
public String getStartPulsitId() { return StartPulsitId; }
public PulsitTripHistoryItem setStartPulsitId(String value) { this.StartPulsitId = value; return this; }
public Date getStartEventTimeValue() { return StartEventTimeValue; }
public PulsitTripHistoryItem setStartEventTimeValue(Date value) { this.StartEventTimeValue = value; return this; }
public String getStartEventTime() { return StartEventTime; }
public PulsitTripHistoryItem setStartEventTime(String value) { this.StartEventTime = value; return this; }
public Double getStartLatitude() { return StartLatitude; }
public PulsitTripHistoryItem setStartLatitude(Double value) { this.StartLatitude = value; return this; }
public Double getStartLongitude() { return StartLongitude; }
public PulsitTripHistoryItem setStartLongitude(Double value) { this.StartLongitude = value; return this; }
public String getStartAddress() { return StartAddress; }
public PulsitTripHistoryItem setStartAddress(String value) { this.StartAddress = value; return this; }
public String getStopPulsitId() { return StopPulsitId; }
public PulsitTripHistoryItem setStopPulsitId(String value) { this.StopPulsitId = value; return this; }
public String getStopEventTime() { return StopEventTime; }
public PulsitTripHistoryItem setStopEventTime(String value) { this.StopEventTime = value; return this; }
public Double getStopLatitude() { return StopLatitude; }
public PulsitTripHistoryItem setStopLatitude(Double value) { this.StopLatitude = value; return this; }
public Double getStopLongitude() { return StopLongitude; }
public PulsitTripHistoryItem setStopLongitude(Double value) { this.StopLongitude = value; return this; }
public String getStopAddress() { return StopAddress; }
public PulsitTripHistoryItem setStopAddress(String value) { this.StopAddress = value; return this; }
public Double getTripMinutes() { return TripMinutes; }
public PulsitTripHistoryItem setTripMinutes(Double value) { this.TripMinutes = value; return this; }
}
}
Java PulsitModuleTripHistoryRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/PulsitModuleTripHistoryRequest HTTP/1.1
Host: galaxymobile.api.dev.86degrees.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PulsitModuleId: String,
StartDate: String,
EndDate: String,
ApiKey: String,
Latitude: 0,
Longitude: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Trips:
[
{
TripNumber: String,
StartPulsitId: String,
StartEventTimeValue: 0001-01-01,
StartEventTime: String,
StartLatitude: 0,
StartLongitude: 0,
StartAddress: String,
StopPulsitId: String,
StopEventTime: String,
StopLatitude: 0,
StopLongitude: 0,
StopAddress: String,
TripMinutes: 0
}
],
Description: String,
Heading: String,
WasSuccessful: False,
ModelState: {}
}