-
public interface CommentReactionListStateAn observable state object that manages the current state of a comment reaction list.
This class provides reactive state management for a collection of comment reactions. It automatically handles real-time updates when reactions are added or removed from the comment, and maintains pagination state for loading additional reactions.
-
-
Method Summary
Modifier and Type Method Description abstract CommentReactionsQuerygetQuery()The query configuration used to fetch comment reactions. abstract StateFlow<List<FeedsReactionData>>getReactions()The current collection of comment reactions. abstract PaginationDatagetPagination()The pagination information from the last query. BooleangetCanLoadMore()-
-
Method Detail
-
getQuery
abstract CommentReactionsQuery getQuery()
The query configuration used to fetch comment reactions.
This contains the comment ID, filters, sorting options, and pagination parameters that define how reactions should be fetched and displayed.
-
getReactions
abstract StateFlow<List<FeedsReactionData>> getReactions()
The current collection of comment reactions.
This list contains all the reactions that have been loaded for the comment. The reactions are automatically sorted according to the query configuration. 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 reactions. The pagination data is automatically updated when new pages are loaded.
-
getCanLoadMore
Boolean getCanLoadMore()
-
-
-
-