Package 

Interface FollowListState


  • 
    public interface FollowListState
    
                        

    An observable state object that manages the current state of a follow list.

    This class maintains maintains the current list of follows, pagination information, and provides real-time updates when follows are modified. It automatically handles WebSocket events to keep the follow list synchronized.

    • Method Summary

      Modifier and Type Method Description
      abstract FollowsQuery getQuery() The original query configuration used to fetch follows.
      abstract StateFlow<List<FollowData>> getFollows() All the paginated follows 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

      • getFollows

         abstract StateFlow<List<FollowData>> getFollows()

        All the paginated follows currently loaded.

        This array contains all follows that have been fetched across multiple pagination requests. The follows 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 follows.