QueryChannelListener
Functions
Link copied to clipboard
abstract suspend fun onQueryChannelPrecondition(channelType: String, channelId: String, request: QueryChannelRequest): 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 onQueryChannelRequest(channelType: String, channelId: String, request: QueryChannelRequest)
Runs side effect before the request is launched.
Link copied to clipboard
abstract suspend fun onQueryChannelResult(result: Result<Channel>, channelType: String, channelId: String, request: QueryChannelRequest)
Runs this function on the result of the request.