RoomJoinRulesContent

@JsonClass(generateAdapter = true)
data class RoomJoinRulesContent(@Json(name = "join_rule") val joinRulesStr: String? = null, @Json(name = "allow") val allowList: List<RoomJoinRulesAllowEntry>? = null)

Class representing the EventType.STATE_ROOM_JOIN_RULES state event content.

Constructors

Link copied to clipboard
fun RoomJoinRulesContent(@Json(name = "join_rule") joinRulesStr: String? = null, @Json(name = "allow") allowList: List<RoomJoinRulesAllowEntry>? = null)

Properties

Link copied to clipboard
val allowList: List<RoomJoinRulesAllowEntry>? = null

If the allow key is an empty list (or not a list at all), then no users are allowed to join without an invite. Each entry is expected to be an object with the following keys:

Link copied to clipboard
val joinRules: RoomJoinRules?
Link copied to clipboard
val joinRulesStr: String? = null