-
public final class QueryChannelsController
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classQueryChannelsController.ChannelsState
-
Field Summary
Fields Modifier and Type Field Description private final MutableStateFlow<Boolean>recoveryNeededprivate final FilterObjectfilterprivate final QuerySort<Channel>sortprivate ChatEventHandlerchatEventHandlerprivate final StateFlow<Boolean>loadingprivate final StateFlow<Boolean>loadingMoreprivate final StateFlow<Boolean>endOfChannelsprivate final StateFlow<List<Channel>>channelsprivate final StateFlow<QueryChannelsController.ChannelsState>channelsState
-
Method Summary
Modifier and Type Method Description final MutableStateFlow<Boolean>getRecoveryNeeded()final FilterObjectgetFilter()final QuerySort<Channel>getSort()final ChatEventHandlergetChatEventHandler()Instance of ChatEventHandler that handles logic of event handling for this QueryChannelsController. final UnitsetChatEventHandler(ChatEventHandler chatEventHandler)Instance of ChatEventHandler that handles logic of event handling for this QueryChannelsController. final StateFlow<Boolean>getLoading()final StateFlow<Boolean>getLoadingMore()final StateFlow<Boolean>getEndOfChannels()final StateFlow<List<Channel>>getChannels()final StateFlow<QueryChannelsController.ChannelsState>getChannelsState()final UnitrefreshChannel(String cId)refreshes a single channel Note that this only refreshes channels that are already matching with the query It retrieves the data from the current channelController object final Result<List<Channel>>query(Integer channelLimit, Integer messageLimit, Integer memberLimit)-
-
Method Detail
-
getRecoveryNeeded
final MutableStateFlow<Boolean> getRecoveryNeeded()
-
getFilter
final FilterObject getFilter()
-
getSort
final QuerySort<Channel> getSort()
-
getChatEventHandler
final ChatEventHandler getChatEventHandler()
Instance of ChatEventHandler that handles logic of event handling for this QueryChannelsController.
-
setChatEventHandler
final Unit setChatEventHandler(ChatEventHandler chatEventHandler)
Instance of ChatEventHandler that handles logic of event handling for this QueryChannelsController.
-
getLoading
final StateFlow<Boolean> getLoading()
-
getLoadingMore
final StateFlow<Boolean> getLoadingMore()
-
getEndOfChannels
final StateFlow<Boolean> getEndOfChannels()
-
getChannels
final StateFlow<List<Channel>> getChannels()
-
getChannelsState
final StateFlow<QueryChannelsController.ChannelsState> getChannelsState()
-
refreshChannel
final Unit refreshChannel(String cId)
refreshes a single channel Note that this only refreshes channels that are already matching with the query It retrieves the data from the current channelController object
- Parameters:
cId- The channel to update.
-
-
-
-