Package 

Class RepliesQueryReference

    • Method Summary

      Modifier and Type Method Description
      Call<List<Message>> get() Returns a call instance representing output of the ChatClient.getReplies request.
      ThreadState asState(CoroutineScope scope) Returns ThreadState for the thread replies of a message with id equal to messageId.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepliesQueryReference

        RepliesQueryReference(String messageId, Integer limit, ChatClient chatClient)
    • 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.