-
- All Implemented Interfaces:
public interface ThreadStateState container with reactive data of a thread.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetParentId()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>getLoading()If we are currently loading messages. 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. -
-
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.
-
getLoading
abstract StateFlow<Boolean> getLoading()
If we are currently loading messages.
-
getLoadingOlderMessages
abstract StateFlow<Boolean> getLoadingOlderMessages()
If we are currently loading older messages.
-
getEndOfOlderMessages
abstract StateFlow<Boolean> getEndOfOlderMessages()
If we've reached the earliest point in 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.
-
-
-
-