MessageNoticeContent

@JsonClass(generateAdapter = true)
data class MessageNoticeContent(    @Json(name = "msgtype") val msgType: String,     @Json(name = "body") val body: String,     @Json(name = "format") val format: String? = null,     @Json(name = "formatted_body") val formattedBody: String? = null,     @Json(name = "m.relates_to") val relatesTo: RelationDefaultContent? = null,     @Json(name = "m.new_content") val newContent: Content? = null) : MessageContentWithFormattedBody

Constructors

Link copied to clipboard
fun MessageNoticeContent(    @Json(name = "msgtype") msgType: String,     @Json(name = "body") body: String,     @Json(name = "format") format: String? = null,     @Json(name = "formatted_body") formattedBody: String? = null,     @Json(name = "m.relates_to") relatesTo: RelationDefaultContent? = null,     @Json(name = "m.new_content") newContent: Content? = null)

Properties

Link copied to clipboard
open override val body: String

Required. The notice text to send.

Link copied to clipboard
open override val format: String? = null

The format used in the formatted_body. Currently only "org.matrix.custom.html" is supported.

Link copied to clipboard
open override val formattedBody: String? = null

The formatted version of the body. This is required if format is specified.

Link copied to clipboard
open val matrixFormattedBody: String?

Get the formattedBody, only if not blank and if the format is equal to "org.matrix.custom.html".

Link copied to clipboard
open override val msgType: String

Required. Must be 'm.notice'.

Link copied to clipboard
open override val newContent: Content? = null
Link copied to clipboard
open override val relatesTo: RelationDefaultContent? = null