RoomKeyWithHeldContent

@JsonClass(generateAdapter = true)
data class RoomKeyWithHeldContent(    @Json(name = "room_id") val roomId: String? = null,     @Json(name = "algorithm") val algorithm: String? = null,     @Json(name = "session_id") val sessionId: String? = null,     @Json(name = "sender_key") val senderKey: String? = null,     @Json(name = "code") val codeString: String? = null,     @Json(name = "reason") val reason: String? = null,     @Json(name = "from_device") val fromDevice: String? = null)

Class representing an sharekey content.

Constructors

Link copied to clipboard
fun RoomKeyWithHeldContent(    @Json(name = "room_id") roomId: String? = null,     @Json(name = "algorithm") algorithm: String? = null,     @Json(name = "session_id") sessionId: String? = null,     @Json(name = "sender_key") senderKey: String? = null,     @Json(name = "code") codeString: String? = null,     @Json(name = "reason") reason: String? = null,     @Json(name = "from_device") fromDevice: String? = null)

Properties

Link copied to clipboard
val algorithm: String? = null

Required. The encryption algorithm that the key is for.

Link copied to clipboard
val code: WithHeldCode?
Link copied to clipboard
val codeString: String? = null

Required. A machine-readable code for why the key was not sent

Link copied to clipboard
val fromDevice: String? = null

the device ID of the device sending the m.room_key.withheld message MSC3735.

Link copied to clipboard
val reason: String? = null

A human-readable reason for why the key was not sent. The receiving client should only use this string if it does not understand the code.

Link copied to clipboard
val roomId: String? = null

Required if code is not m.no_olm. The ID of the room that the session belongs to.

Link copied to clipboard
val senderKey: String? = null

Required. The key of the session creator.

Link copied to clipboard
val sessionId: String? = null

Required if code is not m.no_olm. The ID of the session.