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
fun MessagePollContent(    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
fun getBestPollCreationInfo(): PollCreationInfo?

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