Unknown

data class Unknown(val type: String, val body: String, val raw: JsonObject, val format: String? = null, val formattedBody: String? = null, val relatesTo: RelatesTo? = null, val mentions: Mentions? = null, val externalUrl: String? = null) : RoomMessageEventContent

Constructors

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

Properties

Link copied to clipboard
open override val body: String
Link copied to clipboard
open override val externalUrl: String?
Link copied to clipboard
open override val format: String?
Link copied to clipboard
open override val formattedBody: String?
Link copied to clipboard
open override val mentions: Mentions?
Link copied to clipboard
val raw: JsonObject
Link copied to clipboard
open override val relatesTo: RelatesTo?
Link copied to clipboard
open override val type: String

Functions

Link copied to clipboard
open override fun copyWith(relatesTo: RelatesTo?): RoomMessageEventContent.Unknown

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