TempoTrackingUpdate

@JsonClass(generateAdapter = true)
data class TempoTrackingUpdate(    val triggerChainId: String?,     val eta: Int?,     val etaDirection: String?,     val destination: Destination?) : Parcelable

After TempoService is started, callbacks are received as onTempoTrackingUpdate with TempoTrackingUpdate class it consists of eta, etaDirection calculated by Bluedot for the assigned destination.

Example:

{
"triggerChainId": "30add2f5-ac7b-42cc-8799-cf8d4729579e",
"eta": 60,
"etaDirection": "lessThan",
"destination": {
"destinationId": "002",
"name": "Tempo Zone 002",
"location": {
"latitude": -38.12203660000001,
"longitude": 145.1404072
}
}
}

Constructors

Link copied to clipboard
fun TempoTrackingUpdate(    triggerChainId: String?,     eta: Int?,     etaDirection: String?,     destination: Destination?)

Properties

Link copied to clipboard
val destination: Destination?
Link copied to clipboard
val eta: Int?
Link copied to clipboard
val etaDirection: String?
Link copied to clipboard
val triggerChainId: String?

Functions

Link copied to clipboard
fun toJson(): String

Convert this object to JSON.

Link copied to clipboard
open override fun toString(): String

Override toString to present as JSON.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)