-
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>getEndOfOlderMessages()If we've reached the earliest point in this thread. abstract StateFlow<Boolean>getEndOfNewerMessages()If we've reached the latest point in this thread. abstract StateFlow<Message>getOldestInThread()The oldest message available in this thread state. abstract StateFlow<Message>getNewestInThread()The newest 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.
-
getEndOfOlderMessages
abstract StateFlow<Boolean> getEndOfOlderMessages()
If we've reached the earliest point in this thread.
-
getEndOfNewerMessages
abstract StateFlow<Boolean> getEndOfNewerMessages()
If we've reached the latest 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.
-
getNewestInThread
abstract StateFlow<Message> getNewestInThread()
The newest message available in this thread state. It's null when we haven't loaded any messages in thread yet.
-
-
-
-