-
public interface CommentListStateAn observable state object that manages the current state of a comment list.
This interface maintains the current list of comments, pagination information, and provides real-time updates. It automatically handles WebSocket events to keep the comment list synchronized.
Observable State: Uses flow properties for reactive UI updates
Real-time Updates: Automatically receives WebSocket events for comment changes
Pagination Support: Tracks pagination state for loading more comments
Change Handlers: Internal handlers for processing WebSocket events
-
-
Method Summary
Modifier and Type Method Description abstract CommentsQuerygetQuery()The query used to fetch the comments. abstract StateFlow<List<CommentData>>getComments()All the paginated comments. abstract PaginationDatagetPagination()Last pagination information. BooleangetCanLoadMore()-
-
Method Detail
-
getQuery
abstract CommentsQuery getQuery()
The query used to fetch the comments.
-
getComments
abstract StateFlow<List<CommentData>> getComments()
All the paginated comments.
-
getPagination
abstract PaginationData getPagination()
Last pagination information.
-
getCanLoadMore
Boolean getCanLoadMore()
-
-
-
-