Package 

Interface ThreadState


  • 
    public interface ThreadState
    
                        

    State container with reactive data of a thread.

    • Method Summary

      Modifier and Type Method Description
      abstract String getParentId() The message id for the parent of this thread.
      abstract StateFlow<List<Message>> getMessages() The sorted list of messages for this thread.
      abstract StateFlow<Boolean> getLoadingOlderMessages() If we are currently loading older messages.
      abstract StateFlow<Boolean> getEndOfOlderMessages() If we've reached the earliest point in this thread.
      abstract StateFlow<Message> getOldestInThread() The oldest message available in this thread state.
      • Methods inherited from class java.lang.Object

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

      • getParentId

         abstract String getParentId()

        The message id for the parent of this thread.

      • getMessages

         abstract StateFlow<List<Message>> getMessages()

        The sorted list of messages for this thread.

      • getOldestInThread

         abstract StateFlow<Message> getOldestInThread()

        The oldest message available in this thread state. It's null when we haven't loaded any messages in thread yet.