RoomServerAclContent

@JsonClass(generateAdapter = true)
data class RoomServerAclContent(    @Json(name = "allow_ip_literals") val allowIpLiterals: Boolean = true,     @Json(name = "allow") val allowList: List<String> = emptyList(),     @Json(name = "deny") val denyList: List<String> = emptyList())

Class representing the EventType.STATE_ROOM_SERVER_ACL state event content Ref: https://matrix.org/docs/spec/client_server/r0.6.1#m-room-server-acl

Constructors

Link copied to clipboard
fun RoomServerAclContent(    @Json(name = "allow_ip_literals") allowIpLiterals: Boolean = true,     @Json(name = "allow") allowList: List<String> = emptyList(),     @Json(name = "deny") denyList: List<String> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val allowIpLiterals: Boolean = true

True to allow server names that are IP address literals. False to deny. Defaults to true if missing or otherwise not a boolean. This is strongly recommended to be set to false as servers running with IP literal names are strongly discouraged in order to require legitimate homeservers to be backed by a valid registered domain name.

Link copied to clipboard
val allowList: List<String>

The server names to allow in the room, excluding any port information. Wildcards may be used to cover a wider range of hosts, where * matches zero or more characters and ? matches exactly one character.

Link copied to clipboard
val denyList: List<String>

The server names to disallow in the room, excluding any port information. Wildcards may be used to cover a wider range of hosts, where * matches zero or more characters and ? matches exactly one character.