Package 

Interface MemberListState


  • 
    public interface MemberListState
    
                        

    An 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 MembersQuery getQuery() The original query configuration used to fetch members.
      abstract StateFlow<List<FeedMemberData>> getMembers() All the paginated members currently loaded.
      abstract PaginationData getPagination() Last pagination information from the most recent request.
      Boolean getCanLoadMore()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 next and previous cursor values that can be used to fetch additional pages of members.