-
public interface ThreadQueryListenerListener for reply queries.
-
-
Method Summary
Modifier and Type Method Description Result<Unit>onGetRepliesPrecondition(String messageId, Integer limit)Runs precondition check for ChatClient.getReplies. abstract UnitonGetRepliesRequest(String messageId, Integer limit)Runs side effect before the request is launched. abstract UnitonGetRepliesResult(Result<List<Message>> result, String messageId, Integer limit)Runs this function on the result of the ChatClient.getReplies request. Result<Unit>onGetRepliesMorePrecondition(String messageId, String firstId, Integer limit)Runs precondition check for ChatClient.getRepliesMore. abstract UnitonGetRepliesMoreRequest(String messageId, String firstId, Integer limit)Runs side effect before the request is launched. abstract UnitonGetRepliesMoreResult(Result<List<Message>> result, String messageId, String firstId, Integer limit)Runs this function on the result of the ChatClient.getRepliesMore request. -
-
Method Detail
-
onGetRepliesPrecondition
Result<Unit> onGetRepliesPrecondition(String messageId, Integer limit)
Runs precondition check for ChatClient.getReplies. If it returns Result.isSuccess then the request is run otherwise it returns Result.error and no request is made.
-
onGetRepliesRequest
abstract Unit onGetRepliesRequest(String messageId, Integer limit)
Runs side effect before the request is launched.
-
onGetRepliesResult
abstract Unit onGetRepliesResult(Result<List<Message>> result, String messageId, Integer limit)
Runs this function on the result of the ChatClient.getReplies request.
-
onGetRepliesMorePrecondition
Result<Unit> onGetRepliesMorePrecondition(String messageId, String firstId, Integer limit)
Runs precondition check for ChatClient.getRepliesMore. If it returns Result.isSuccess then the request is run otherwise it returns Result.error and no request is made.
-
onGetRepliesMoreRequest
abstract Unit onGetRepliesMoreRequest(String messageId, String firstId, Integer limit)
Runs side effect before the request is launched.
-
onGetRepliesMoreResult
abstract Unit onGetRepliesMoreResult(Result<List<Message>> result, String messageId, String firstId, Integer limit)
Runs this function on the result of the ChatClient.getRepliesMore request.
-
-
-
-