-
public interface QueryChannelListenerListener of ChatClient.queryChannel requests.
-
-
Method Summary
Modifier and Type Method Description Result<Unit>onQueryChannelPrecondition(String channelType, String channelId, QueryChannelRequest request)Run precondition for the request. UnitonQueryChannelRequest(String channelType, String channelId, QueryChannelRequest request)Run side effect before the request is launched. UnitonQueryChannelResult(Result<Channel> result, String channelType, String channelId, QueryChannelRequest request)Runs this function on the result of the request. -
-
Method Detail
-
onQueryChannelPrecondition
Result<Unit> onQueryChannelPrecondition(String channelType, String channelId, QueryChannelRequest request)
Run precondition for the request. If it returns Result.isSuccess then the request is run otherwise it returns Result.error and no request is made.
-
onQueryChannelRequest
Unit onQueryChannelRequest(String channelType, String channelId, QueryChannelRequest request)
Run side effect before the request is launched.
- Parameters:
channelType- Type of the requested channel.channelId- Id of the requested channel.request- QueryChannelRequest which is going to be used for the request.
-
onQueryChannelResult
Unit onQueryChannelResult(Result<Channel> result, String channelType, String channelId, QueryChannelRequest request)
Runs this function on the result of the request.
-
-
-
-