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
constructor(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
Link copied to clipboard
Link copied to clipboard

Get the latest displayable content. Will take care to hide spoiler text

Properties

Link copied to clipboard
open override val body: String
Link copied to clipboard
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
Link copied to clipboard

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