/* Options: Date: 2025-12-06 08:55:29 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://cochraneplus-api-dev.happen.zone //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: BackgroundLocationReceived.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route(Path="/location/background", Verbs="POST") open class BackgroundLocationReceived : IReturn, IHasApiKey { var apiKey:String? = null var location:LocationData? = null companion object { private val responseType = ApiServiceResponse::class.java } override fun getResponseType(): Any? = BackgroundLocationReceived.responseType } open class ApiServiceResponse : IServiceResponse { var description:String? = null var heading:String? = null var wasSuccessful:Boolean? = null var modelState:Object? = null } open interface IHasApiKey { var apiKey:String? } open class LocationData { var coords:CoordsData? = null var extras:ExtrasData? = null var is_moving:Boolean? = null var odometer:Double? = null var uuid:String? = null var activity:ActivityData? = null var battery:BatteryData? = null var timestamp:Date? = null } open interface IServiceResponse { var wasSuccessful:Boolean? var description:String? var heading:String? } open class CoordsData { var speed:Double? = null var longitude:Double? = null var latitude:Double? = null var accuracy:Double? = null var altitude:Double? = null var heading:Double? = null } open class ExtrasData { var systemUserId:Int? = null var deviceId:UUID? = null } open class ActivityData { @SerializedName("type") var Type:String? = null var confidence:Int? = null } open class BatteryData { var level:Double? = null var is_charging:Boolean? = null }