Location

data class Location(val cid: String = "", val messageId: String = "", val userId: String = "", val endAt: Date? = null, val latitude: Double = 0.0, val longitude: Double = 0.0, val deviceId: String = "")

Represents a user's location.

Constructors

Link copied to clipboard
constructor(cid: String = "", messageId: String = "", userId: String = "", endAt: Date? = null, latitude: Double = 0.0, longitude: Double = 0.0, deviceId: String = "")

Properties

Link copied to clipboard
val cid: String

The channel ID where the location is shared.

Link copied to clipboard

The device ID from which the location is shared.

Link copied to clipboard
val endAt: Date? = null

The date and time when the location sharing ends.

Link copied to clipboard
val latitude: Double = 0.0

The latitude of the user's location.

Link copied to clipboard
val longitude: Double = 0.0

The longitude of the user's location.

Link copied to clipboard

The ID of the message containing the location.

Link copied to clipboard

The ID of the user sharing the location.