Notice

@Serializable
data class Notice(val body: String, val format: String? = null, val formattedBody: String? = null, val relatesTo: RelatesTo? = null, val mentions: Mentions? = null, val externalUrl: String? = null) : RoomMessageEventContent.TextBased

See also

Constructors

Link copied to clipboard
constructor(body: String, format: String? = null, formattedBody: String? = null, relatesTo: RelatesTo? = null, mentions: Mentions? = null, externalUrl: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "body")
open override val body: String
Link copied to clipboard
@SerialName(value = "external_url")
open override val externalUrl: String?
Link copied to clipboard
@SerialName(value = "format")
open override val format: String?
Link copied to clipboard
@SerialName(value = "formatted_body")
open override val formattedBody: String?
Link copied to clipboard
@SerialName(value = "m.mentions")
open override val mentions: Mentions?
Link copied to clipboard
@SerialName(value = "m.relates_to")
open override val relatesTo: RelatesTo?
Link copied to clipboard
@SerialName(value = "msgtype")
open override val type: String

Functions

Link copied to clipboard

This should return the same instance, but with the relatesTo property set to the given value. It is used for event content replacing.