MessagePollContent

@JsonClass(generateAdapter = true)
data class MessagePollContent(val msgType: String = MessageType.MSGTYPE_POLL_START, @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.msc3381.poll.start") val unstablePollCreationInfo: PollCreationInfo? = null, @Json(name = "m.poll.start") val pollCreationInfo: PollCreationInfo? = null) : MessageContent

Constructors

Link copied to clipboard
constructor(msgType: String = MessageType.MSGTYPE_POLL_START, @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.msc3381.poll.start") unstablePollCreationInfo: PollCreationInfo? = null, @Json(name = "m.poll.start") pollCreationInfo: PollCreationInfo? = null)

Functions

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
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
Link copied to clipboard
open override val relatesTo: RelationDefaultContent? = null