-
public interface FollowListStateAn 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 FollowsQuerygetQuery()The original query configuration used to fetch follows. abstract StateFlow<List<FollowData>>getFollows()All the paginated follows currently loaded. abstract PaginationDatagetPagination()Last pagination information from the most recent request. BooleangetCanLoadMore()-
-
Method Detail
-
getQuery
abstract FollowsQuery getQuery()
The original query configuration used to fetch follows.
-
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
nextandpreviouscursor values that can be used to fetch additional pages of follows.
-
getCanLoadMore
Boolean getCanLoadMore()
-
-
-
-