ThreadQueryListener

Listener for reply queries.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun onGetNewerRepliesRequest(parentId: String, limit: Int, lastId: String?)

Runs side effect before the request is launched.

Link copied to clipboard
abstract suspend fun onGetNewerRepliesResult(result: Result<List<Message>>, parentId: String, limit: Int, lastId: String?)

Runs this function on the result of the ChatClient.getNewerReplies request.

Link copied to clipboard
abstract suspend fun onGetRepliesMoreRequest(parentId: String, firstId: String, limit: Int)

Runs side effect before the request is launched.

Link copied to clipboard
abstract suspend fun onGetRepliesMoreResult(result: Result<List<Message>>, parentId: String, firstId: String, limit: Int)

Runs this function on the result of the ChatClient.getRepliesMore request.

Link copied to clipboard
open suspend fun onGetRepliesPrecondition(parentId: String): Result<Unit>

Runs precondition check for ChatClient.getReplies, ChatClient.getNewerReplies and ChatClient.getRepliesMore. 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 onGetRepliesRequest(parentId: String, limit: Int)

Runs side effect before the request is launched.

Link copied to clipboard
abstract suspend fun onGetRepliesResult(result: Result<List<Message>>, parentId: String, limit: Int)

Runs this function on the result of the ChatClient.getReplies request.