EncryptionEventContent

@JsonClass(generateAdapter = true)
data class EncryptionEventContent(@Json(name = "algorithm") val algorithm: String?, @Json(name = "rotation_period_ms") val rotationPeriodMs: Long? = null, @Json(name = "rotation_period_msgs") val rotationPeriodMsgs: Long? = null)

Class representing an encrypted event content.

Constructors

Link copied to clipboard
constructor(@Json(name = "algorithm") algorithm: String?, @Json(name = "rotation_period_ms") rotationPeriodMs: Long? = null, @Json(name = "rotation_period_msgs") rotationPeriodMsgs: Long? = null)

Properties

Link copied to clipboard

Required. The encryption algorithm to be used to encrypt messages sent in this room. Must be 'm.megolm.v1.aes-sha2'.

Link copied to clipboard
val rotationPeriodMs: Long? = null

How long the session should be used before changing it. 604800000 (a week) is the recommended default.

Link copied to clipboard

How many messages should be sent before changing the session. 100 is the recommended default.