BanUser

data class BanUser(val user: User, val reason: String? = null, val timeout: Int? = null) : MessageListViewModel.Event

When the user bans another user.

Parameters

user

The user to be blocked.

reason

The reason for banning the user.

timeout

The time until the user is automatically unbanned, expressed in minutes. A null value represent an indefinite ban.

Constructors

Link copied to clipboard
constructor(user: User, reason: String? = null, timeout: Int? = null)

Properties

Link copied to clipboard
val reason: String? = null
Link copied to clipboard
val timeout: Int? = null
Link copied to clipboard
val user: User