VerificationRequest

@Serializable
data class VerificationRequest(val fromDevice: String, val to: UserId, val methods: Set<VerificationMethod>, val body: String = "Attempting verification request (m.key.verification.request). Apparently your client doesn't support this.", val format: String? = null, val formattedBody: String? = null, val relatesTo: RelatesTo? = null, val mentions: Mentions? = null, val externalUrl: String? = null) : RoomMessageEventContent, VerificationRequest

Constructors

Link copied to clipboard
constructor(fromDevice: String, to: UserId, methods: Set<VerificationMethod>, body: String = "Attempting verification request (m.key.verification.request). Apparently your client doesn't support this.", 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 = "from_device")
open override val fromDevice: String
Link copied to clipboard
@SerialName(value = "m.mentions")
open override val mentions: Mentions?
Link copied to clipboard
@SerialName(value = "methods")
open override val methods: Set<VerificationMethod>
Link copied to clipboard
@SerialName(value = "m.relates_to")
open override val relatesTo: RelatesTo?
Link copied to clipboard
@SerialName(value = "to")
val to: UserId
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.