MessageBeaconLocationDataContent

@JsonClass(generateAdapter = true)
data class MessageBeaconLocationDataContent(    val msgType: String = MessageType.MSGTYPE_BEACON_LOCATION_DATA,     @Json(name = "body") val body: String = "",     @Json(name = "m.relates_to") val relatesTo: RelationDefaultContent? = null,     @Json(name = "m.new_content") val newContent: Content? = null,     @Json(name = "org.matrix.msc3488.location") val unstableLocationInfo: LocationInfo? = null,     @Json(name = "m.location") val locationInfo: LocationInfo? = null,     @Json(name = "org.matrix.msc3488.ts") val unstableTimestampMillis: Long? = null,     @Json(name = "m.ts") val timestampMillis: Long? = null) : MessageContent

Content of the event of type EventType.BEACON_LOCATION_DATA

It contains location data related to a live location share. It is related to the state event that originally started the live. See MessageBeaconInfoContent

Constructors

Link copied to clipboard
fun MessageBeaconLocationDataContent(    msgType: String = MessageType.MSGTYPE_BEACON_LOCATION_DATA,     @Json(name = "body") body: String = "",     @Json(name = "m.relates_to") relatesTo: RelationDefaultContent? = null,     @Json(name = "m.new_content") newContent: Content? = null,     @Json(name = "org.matrix.msc3488.location") unstableLocationInfo: LocationInfo? = null,     @Json(name = "m.location") locationInfo: LocationInfo? = null,     @Json(name = "org.matrix.msc3488.ts") unstableTimestampMillis: Long? = null,     @Json(name = "m.ts") timestampMillis: Long? = null)

Functions

Link copied to clipboard
fun getBestLocationInfo(): LocationInfo?
Link copied to clipboard
fun getBestTimestampMillis(): Long?

Properties

Link copied to clipboard
open override val body: String
Link copied to clipboard
val locationInfo: LocationInfo? = null
Link copied to clipboard
open override val msgType: String

Local message type, not from server.

Link copied to clipboard
open override val newContent: Content? = null
Link copied to clipboard
open override val relatesTo: RelationDefaultContent? = null
Link copied to clipboard
val timestampMillis: Long? = null
Link copied to clipboard
val unstableLocationInfo: LocationInfo? = null

See MSC3488.

Link copied to clipboard
val unstableTimestampMillis: Long? = null

Exact time that the data in the event refers to (milliseconds since the UNIX epoch).