-
- All Implemented Interfaces:
-
io.getstream.chat.android.offline.experimental.plugin.QueryReference
public final class RepliesQueryReference implements QueryReference<List<Message>, ThreadState>
Reference for the ChatClient.getReplies request.
-
-
Constructor Summary
Constructors Constructor Description RepliesQueryReference(String messageId, Integer limit, ChatClient chatClient)
-
Method Summary
Modifier and Type Method Description Call<List<Message>>get()Returns a call instance representing output of the ChatClient.getReplies request. ThreadStateasState(CoroutineScope scope)Returns ThreadState for the thread replies of a message with id equal to messageId. -
-
Method Detail
-
get
Call<List<Message>> get()
Returns a call instance representing output of the ChatClient.getReplies request.
-
asState
ThreadState asState(CoroutineScope scope)
Returns ThreadState for the thread replies of a message with id equal to messageId. And fill it by data from ChatClient.getReplies. We use a coroutine instead of a simple enqueue() call, to have control over the lifecycle of the request.
- Parameters:
scope- Coroutine scope where initial data filling action is being invoked.
-
-
-
-