TextBased

Types

Link copied to clipboard
@Serializable
data class Emote(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
Link copied to clipboard
@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
Link copied to clipboard
@Serializable
data class Text(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

Properties

Link copied to clipboard
abstract val body: String
Link copied to clipboard
abstract val externalUrl: String?
Link copied to clipboard
abstract val format: String?
Link copied to clipboard
abstract val formattedBody: String?
Link copied to clipboard
abstract val mentions: Mentions?
Link copied to clipboard
abstract val relatesTo: RelatesTo?
Link copied to clipboard
abstract val type: String

Functions

Link copied to clipboard
abstract fun copyWith(relatesTo: RelatesTo?): MessageEventContent

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