OlmDecryptionResult

@JsonClass(generateAdapter = true)
data class OlmDecryptionResult(    @Json(name = "payload") val payload: JsonDict? = null,     @Json(name = "keysClaimed") val keysClaimed: Map<String, String>? = null,     @Json(name = "senderKey") val senderKey: String? = null,     @Json(name = "forwardingCurve25519KeyChain") val forwardingCurve25519KeyChain: List<String>? = null,     @Json(name = "key_safety") val isSafe: Boolean? = null,     @Json(name = "verification_state") val verificationState: MessageVerificationState? = null)

This class represents the decryption result. It's serialized in eventEntity to remember the decryption result

Constructors

Link copied to clipboard
fun OlmDecryptionResult(    @Json(name = "payload") payload: JsonDict? = null,     @Json(name = "keysClaimed") keysClaimed: Map<String, String>? = null,     @Json(name = "senderKey") senderKey: String? = null,     @Json(name = "forwardingCurve25519KeyChain") forwardingCurve25519KeyChain: List<String>? = null,     @Json(name = "key_safety") isSafe: Boolean? = null,     @Json(name = "verification_state") verificationState: MessageVerificationState? = null)

Properties

Link copied to clipboard
val forwardingCurve25519KeyChain: List<String>? = null

Devices which forwarded this session to us (normally empty).

Link copied to clipboard
val isSafe: Boolean? = null

True if the key used to decrypt is considered safe (trusted).

Link copied to clipboard
val keysClaimed: Map<String, String>? = null

keys that the sender of the event claims ownership of: map from key type to base64-encoded key.

Link copied to clipboard
val payload: JsonDict? = null

The decrypted payload (with properties 'type', 'content').

Link copied to clipboard
val senderKey: String? = null

The curve25519 key that the sender of the event is known to have ownership of.

Link copied to clipboard
val verificationState: MessageVerificationState? = null

Authenticity info for that message.