Destination

@JsonClass(generateAdapter = true)
class Destination(    val name: String,     val address: String?,     val destinationId: String,     val location: Point) : 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"}

Constructors

Link copied to clipboard
fun Destination(    name: String,     address: String?,     destinationId: String,     location: Point)

Properties

Link copied to clipboard
val address: String?

Store address added in canvas

Link copied to clipboard
val destinationId: String

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)