import java.math.*
import java.util.*
import net.servicestack.client.*
open class PulsitProfileRequest : ApiServiceRequest()
{
}
open class ApiServiceRequest : IServiceRequest, IHasApiKey, IHasDeviceInfo, IHasClientId
{
/**
* The API Key required for authentication
*/
@ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
var ApiKey:String? = null
/**
* Latitude of the user making this request
*/
@ApiMember(DataType="double", Description="Latitude of the user making this request")
var Latitude:Double? = null
/**
* Longitude of the user making this request
*/
@ApiMember(DataType="double", Description="Longitude of the user making this request")
var Longitude:Double? = 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:String? = 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 .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/PulsitProfileRequest HTTP/1.1
Host: galaxymobile.api.dev.86degrees.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ApiKey: String,
Latitude: 0,
Longitude: 0
}
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: String,
Status: String,
PulsitStartId: 0
}
}
],
Devices:
[
{
PulsitModuleId: String,
Product: String,
Description: String,
Type: 0,
TypeString: Lock
}
],
Description: String,
Heading: String,
WasSuccessful: False,
ModelState: {}
}