MessageEndPollContent

@JsonClass(generateAdapter = true)
data class MessageEndPollContent(    val msgType: String = MessageType.MSGTYPE_POLL_END,     @Json(name = "body") val body: String = "",     @Json(name = "m.new_content") val newContent: Content? = null,     @Json(name = "m.relates_to") val relatesTo: RelationDefaultContent? = null,     @Json(name = "org.matrix.msc1767.text") val unstableText: String? = null,     @Json(name = "m.text") val text: String? = null) : MessageContent

Class representing the org.matrix.msc3381.poll.end event content.

Constructors

Link copied to clipboard
fun MessageEndPollContent(    msgType: String = MessageType.MSGTYPE_POLL_END,     @Json(name = "body") body: String = "",     @Json(name = "m.new_content") newContent: Content? = null,     @Json(name = "m.relates_to") relatesTo: RelationDefaultContent? = null,     @Json(name = "org.matrix.msc1767.text") unstableText: String? = null,     @Json(name = "m.text") text: String? = null)

Functions

Link copied to clipboard
fun getBestText(): String?

Properties

Link copied to clipboard
open override val body: String
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 text: String? = null
Link copied to clipboard
val unstableText: String? = null