Power Levels Content
@JsonClass(generateAdapter = true )
Class representing the EventType.EVENT_TYPE_STATE_ROOM_POWER_LEVELS state event content.
Constructors
Link copied to clipboard
constructor(@Json(name = "ban" ) ban: Int? = null, @Json(name = "kick" ) kick: Int? = null, @Json(name = "invite" ) invite: Int? = null, @Json(name = "redact" ) redact: Int? = null, @Json(name = "events_default" ) eventsDefault: Int? = null, @Json(name = "events" ) events: Map<String, Int>? = null, @Json(name = "users_default" ) usersDefault: Int? = null, @Json(name = "users" ) users: Map<String, Int>? = null, @Json(name = "state_default" ) stateDefault: Int? = null, @Json(name = "notifications" ) notifications: Map<String, Any>? = null)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get the notification level for a dedicated key.
Link copied to clipboard
Link copied to clipboard
Return a copy of this content with a new power level for the specified user.
Link copied to clipboard
Link copied to clipboard
Properties
Link copied to clipboard
The default level required to send message events. Can be overridden by the events key. Defaults to 0 if unspecified.
Link copied to clipboard
The power level requirements for specific notification types. This is a mapping from key to power level for that notifications key.
Link copied to clipboard
The default level required to send state events. Can be overridden by the events key. Defaults to 50 if unspecified.
Link copied to clipboard
The default power level for every user in the room, unless their user_id is mentioned in the users key. Defaults to 0 if unspecified.