| GET | /pulsit/profile |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class PulsitProfileRequest : ApiServiceRequest()
{
var IdNumber:String? = null
}
open class ApiServiceRequest : IServiceRequest, IHasApiKey
{
/**
* The API Key required for authentication
*/
@ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
var ApiKey:String? = null
}
open class PulsitProfileResponse : ApiServiceResponse()
{
var Products:ArrayList<PulsitProfileProductItem> = ArrayList<PulsitProfileProductItem>()
var Devices:ArrayList<PulsitProfileDeviceItem> = ArrayList<PulsitProfileDeviceItem>()
}
open class ApiServiceResponse : IServiceResponse
{
var Description:String? = null
var Heading:String? = null
var WasSuccessful:Boolean? = null
var ModelState:Object? = null
}
open class PulsitProfileProductItem
{
var Product:String? = null
var Make:String? = null
var Model:String? = null
var Year:String? = null
var RegistrationNumber:String? = null
var PulsitModuleId:String? = null
var LatestStatus:PulsitModuleStatusItem? = null
}
open class PulsitModuleStatusItem
{
var PulsitModuleId:String? = null
var Latitude:Double? = null
var Longitude:Double? = null
var EventDescription:String? = null
var EventTime:Date? = null
var Status:String? = null
var PulsitStartId:Int? = null
}
open class PulsitProfileDeviceItem
{
var PulsitModuleId:String? = null
var Product:String? = null
var Description:String? = null
var Type:DeviceType? = null
var TypeString:String? = null
}
enum class DeviceType(val value:Int)
{
@SerializedName("0") Lock(0),
@SerializedName("1") HomeSecurity(1),
}
Kotlin PulsitProfileRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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-01T00:00:00.0000000","Status":"String","PulsitStartId":0}}],"Devices":[{"PulsitModuleId":"String","Product":"String","Description":"String","Type":0,"TypeString":"Lock"}],"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}