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
fun EncryptionEventContent(    @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
val algorithm: String?

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
val rotationPeriodMsgs: Long? = null

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