-
public interface MemberListStateAn observable state object that manages the current state of a member list.
This class maintains maintains the current list of members, pagination information, and provides real-time updates when members are added, removed, or modified. It automatically handles WebSocket events to keep the member list synchronized.
-
-
Method Summary
Modifier and Type Method Description abstract MembersQuerygetQuery()The original query configuration used to fetch members. abstract StateFlow<List<FeedMemberData>>getMembers()All the paginated members currently loaded. abstract PaginationDatagetPagination()Last pagination information from the most recent request. BooleangetCanLoadMore()-
-
Method Detail
-
getQuery
abstract MembersQuery getQuery()
The original query configuration used to fetch members.
This contains the feed ID, filters, and sorting options that were used to create the initial member list.
-
getMembers
abstract StateFlow<List<FeedMemberData>> getMembers()
All the paginated members currently loaded.
This array contains all members that have been fetched across multiple pagination requests. The members are automatically sorted according to the current sorting configuration.
-
getPagination
abstract PaginationData getPagination()
Last pagination information from the most recent request.
Contains the
nextandpreviouscursor values that can be used to fetch additional pages of members.
-
getCanLoadMore
Boolean getCanLoadMore()
-
-
-
-