HideChannelListener

Listener of ChatClient.hideChannel requests.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun onHideChannelPrecondition(channelType: String, channelId: String, clearHistory: Boolean): Result<Unit>

Run precondition for the request. If it returns Result.Success then the request is run otherwise it returns Result.Failure and no request is made.

Link copied to clipboard
abstract suspend fun onHideChannelRequest(channelType: String, channelId: String, clearHistory: Boolean)

Runs side effect before the request is launched.

Link copied to clipboard
abstract suspend fun onHideChannelResult(result: Result<Unit>, channelType: String, channelId: String, clearHistory: Boolean)

Runs this function on the result of the request.