-
public interface QueryChannelsState
-
-
Method Summary
Modifier and Type Method Description abstract FilterObjectgetFilter()The filter is associated with this query channels state. abstract QuerySort<Channel>getSort()The sort object which requested for this query channels state. abstract StateFlow<QueryChannelsRequest>getCurrentRequest()The request for the current page. abstract StateFlow<QueryChannelsRequest>getNextPageRequest()The request for the next page, if there is a page. abstract StateFlow<Boolean>getLoading()If the current state is being loaded. abstract StateFlow<Boolean>getLoadingMore()If the current state is loading more channels (a next page is being loaded). abstract StateFlow<Boolean>getEndOfChannels()If the current state reached the final page. abstract StateFlow<List<Channel>>getChannels()The collection of channels loaded by the query channels request. abstract StateFlow<ChannelsStateData>getChannelsStateData()The channels loaded state. abstract ChatEventHandlergetChatEventHandler()Instance of ChatEventHandler that handles logic of event handling for this QueryChannelsState. abstract UnitsetChatEventHandler(ChatEventHandler chatEventHandler)Instance of ChatEventHandler that handles logic of event handling for this QueryChannelsState. -
-
Method Detail
-
getFilter
abstract FilterObject getFilter()
The filter is associated with this query channels state.
-
getSort
abstract QuerySort<Channel> getSort()
The sort object which requested for this query channels state.
-
getCurrentRequest
abstract StateFlow<QueryChannelsRequest> getCurrentRequest()
The request for the current page.
-
getNextPageRequest
abstract StateFlow<QueryChannelsRequest> getNextPageRequest()
The request for the next page, if there is a page.
-
getLoading
abstract StateFlow<Boolean> getLoading()
If the current state is being loaded.
-
getLoadingMore
abstract StateFlow<Boolean> getLoadingMore()
If the current state is loading more channels (a next page is being loaded).
-
getEndOfChannels
abstract StateFlow<Boolean> getEndOfChannels()
If the current state reached the final page.
-
getChannels
abstract StateFlow<List<Channel>> getChannels()
The collection of channels loaded by the query channels request.
-
getChannelsStateData
abstract StateFlow<ChannelsStateData> getChannelsStateData()
The channels loaded state. See ChannelsStateData.
-
getChatEventHandler
abstract ChatEventHandler getChatEventHandler()
Instance of ChatEventHandler that handles logic of event handling for this QueryChannelsState.
-
setChatEventHandler
abstract Unit setChatEventHandler(ChatEventHandler chatEventHandler)
Instance of ChatEventHandler that handles logic of event handling for this QueryChannelsState.
-
-
-
-