Interface QueryChannelListener
-
- All Implemented Interfaces:
public interface QueryChannelListenerListener of ChatClient.queryChannel requests.
-
-
Method Summary
Modifier and Type Method Description abstract Result<Unit>onQueryChannelPrecondition(String channelType, String channelId, QueryChannelRequest request)Run precondition for the request. abstract UnitonQueryChannelRequest(String channelType, String channelId, QueryChannelRequest request)Runs side effect before the request is launched. abstract UnitonQueryChannelResult(Result<Channel> result, String channelType, String channelId, QueryChannelRequest request)Runs this function on the result of the request. -
-
Method Detail
-
onQueryChannelPrecondition
abstract Result<Unit> onQueryChannelPrecondition(String channelType, String channelId, QueryChannelRequest request)
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.
-
onQueryChannelRequest
abstract Unit onQueryChannelRequest(String channelType, String channelId, QueryChannelRequest request)
Runs 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
abstract Unit onQueryChannelResult(Result<Channel> result, String channelType, String channelId, QueryChannelRequest request)
Runs this function on the result of the request.
-
-
-
-