| GET | /pulsit/profile |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class PulsitProfileRequest extends ApiServiceRequest
{
public String IdNumber = null;
public String getIdNumber() { return IdNumber; }
public PulsitProfileRequest setIdNumber(String value) { this.IdNumber = 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 PulsitProfileResponse extends ApiServiceResponse
{
public ArrayList<PulsitProfileProductItem> Products = null;
public ArrayList<PulsitProfileDeviceItem> Devices = null;
public ArrayList<PulsitProfileProductItem> getProducts() { return Products; }
public PulsitProfileResponse setProducts(ArrayList<PulsitProfileProductItem> value) { this.Products = value; return this; }
public ArrayList<PulsitProfileDeviceItem> getDevices() { return Devices; }
public PulsitProfileResponse setDevices(ArrayList<PulsitProfileDeviceItem> value) { this.Devices = 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 PulsitProfileProductItem
{
public String Product = null;
public String Make = null;
public String Model = null;
public String Year = null;
public String RegistrationNumber = null;
public String PulsitModuleId = null;
public PulsitModuleStatusItem LatestStatus = null;
public String getProduct() { return Product; }
public PulsitProfileProductItem setProduct(String value) { this.Product = value; return this; }
public String getMake() { return Make; }
public PulsitProfileProductItem setMake(String value) { this.Make = value; return this; }
public String getModel() { return Model; }
public PulsitProfileProductItem setModel(String value) { this.Model = value; return this; }
public String getYear() { return Year; }
public PulsitProfileProductItem setYear(String value) { this.Year = value; return this; }
public String getRegistrationNumber() { return RegistrationNumber; }
public PulsitProfileProductItem setRegistrationNumber(String value) { this.RegistrationNumber = value; return this; }
public String getPulsitModuleId() { return PulsitModuleId; }
public PulsitProfileProductItem setPulsitModuleId(String value) { this.PulsitModuleId = value; return this; }
public PulsitModuleStatusItem getLatestStatus() { return LatestStatus; }
public PulsitProfileProductItem setLatestStatus(PulsitModuleStatusItem value) { this.LatestStatus = value; return this; }
}
public static class PulsitModuleStatusItem
{
public String PulsitModuleId = null;
public Double Latitude = null;
public Double Longitude = null;
public String EventDescription = null;
public Date EventTime = null;
public String Status = null;
public Integer PulsitStartId = null;
public String getPulsitModuleId() { return PulsitModuleId; }
public PulsitModuleStatusItem setPulsitModuleId(String value) { this.PulsitModuleId = value; return this; }
public Double getLatitude() { return Latitude; }
public PulsitModuleStatusItem setLatitude(Double value) { this.Latitude = value; return this; }
public Double getLongitude() { return Longitude; }
public PulsitModuleStatusItem setLongitude(Double value) { this.Longitude = value; return this; }
public String getEventDescription() { return EventDescription; }
public PulsitModuleStatusItem setEventDescription(String value) { this.EventDescription = value; return this; }
public Date getEventTime() { return EventTime; }
public PulsitModuleStatusItem setEventTime(Date value) { this.EventTime = value; return this; }
public String getStatus() { return Status; }
public PulsitModuleStatusItem setStatus(String value) { this.Status = value; return this; }
public Integer getPulsitStartId() { return PulsitStartId; }
public PulsitModuleStatusItem setPulsitStartId(Integer value) { this.PulsitStartId = value; return this; }
}
public static class PulsitProfileDeviceItem
{
public String PulsitModuleId = null;
public String Product = null;
public String Description = null;
public DeviceType Type = null;
public String TypeString = null;
public String getPulsitModuleId() { return PulsitModuleId; }
public PulsitProfileDeviceItem setPulsitModuleId(String value) { this.PulsitModuleId = value; return this; }
public String getProduct() { return Product; }
public PulsitProfileDeviceItem setProduct(String value) { this.Product = value; return this; }
public String getDescription() { return Description; }
public PulsitProfileDeviceItem setDescription(String value) { this.Description = value; return this; }
public DeviceType getType() { return Type; }
public PulsitProfileDeviceItem setType(DeviceType value) { this.Type = value; return this; }
public String getTypeString() { return TypeString; }
public PulsitProfileDeviceItem setTypeString(String value) { this.TypeString = value; return this; }
}
public static enum DeviceType
{
@SerializedName("0") Lock(0),
@SerializedName("1") HomeSecurity(1);
private final int value;
DeviceType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
}
Java PulsitProfileRequest 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.
GET /pulsit/profile HTTP/1.1 Host: galaxymobile.api.client.prod.86degrees.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Products:
[
{
Product: String,
Make: String,
Model: String,
Year: String,
RegistrationNumber: String,
PulsitModuleId: String,
LatestStatus:
{
PulsitModuleId: String,
Latitude: 0,
Longitude: 0,
EventDescription: String,
EventTime: 0001-01-01,
Status: String,
PulsitStartId: 0
}
}
],
Devices:
[
{
PulsitModuleId: String,
Product: String,
Description: String,
Type: 0,
TypeString: Lock
}
],
Description: String,
Heading: String,
WasSuccessful: False,
ModelState: {}
}