-
public interface CommentReplyListStateAn observable object representing the current state of a comment's reply list.
This class manages the state of replies for a specific comment, including the list of replies, pagination information, and real-time updates from WebSocket events. It automatically handles reply updates and reaction changes.
Observable State: Uses
@Publishedproperties for reactive UI updatesReal-time Updates: Automatically receives WebSocket events for reply changes
Pagination Support: Tracks pagination state for loading more replies
Change Handlers: Internal handlers for processing WebSocket events
-
-
Method Summary
Modifier and Type Method Description abstract CommentRepliesQuerygetQuery()The query configuration used to fetch replies. abstract StateFlow<List<ThreadedCommentData>>getReplies()The current collection of replies for the comment. abstract PaginationDatagetPagination()The pagination information from the last query. BooleangetCanLoadMore()-
-
Method Detail
-
getQuery
abstract CommentRepliesQuery getQuery()
The query configuration used to fetch replies.
-
getReplies
abstract StateFlow<List<ThreadedCommentData>> getReplies()
The current collection of replies for the comment.
This list contains all the replies that have been loaded for the comment. Changes to this array are published and can be observed for UI updates.
-
getPagination
abstract PaginationData getPagination()
The pagination information from the last query.
This contains the pagination cursors (
nextandprevious) that can be used to fetch additional pages of replies. The pagination data is automatically updated when new pages are loaded.
-
getCanLoadMore
Boolean getCanLoadMore()
-
-
-
-