Destination

@JsonClass(generateAdapter = true)
class Destination(val name: String?, val address: String?, val destinationId: String, val location: Point?, val customData: Map<String, String>?) : Serializable, Parcelable

Destination class stores the store details set by user in canvas while adding a store to a corresponding zone.

This is used for Tempo feature

Example:

  destination: {
"name": "Forrester",
"address": "5 Forrester Walk, Narre Warren South VIC 3805, Australia",
"location": {
"longitude": 145.2947817,
"latitude": -38.0612715
},
"destinationId": "forrester",
"customData": {
"key1": "value1",
"key2": "value2",
...
}
}

Constructors

Link copied to clipboard
constructor(name: String?, address: String?, destinationId: String, location: Point?, customData: Map<String, String>?)

Properties

Link copied to clipboard

Store address added in canvas

Link copied to clipboard

Custom data added by user in canvas for the store

Link copied to clipboard

is assigned by user while creating a store in canvas

Link copied to clipboard
val location: Point?

Location (latitude and longitude) of the store created in canvas

Link copied to clipboard
val name: String?

Store name added in canvas

Functions

Link copied to clipboard
fun toJson(): String

Convert this object to JSON.

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

Inherited functions

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