Power Levels Content
@JsonClass(generateAdapter = true )
Content copied to clipboard
Class representing the EventType.EVENT_TYPE_STATE_ROOM_POWER_LEVELS state event content.
Constructors
Link copied to clipboard
fun PowerLevelsContent( @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)
Content copied to clipboard
Types
Functions
Link copied to clipboard
Get the notification level for a dedicated key.
Link copied to clipboard
fun setUserPowerLevel(userId: String, powerLevel: Int?): PowerLevelsContent
Content copied to clipboard
Return a copy of this content with a new power level for the specified user.