Class ChannelListViewModel

  • All Implemented Interfaces:

    
    public final class ChannelListViewModel
    extends ViewModel
                        

    ViewModel class for ChannelListView. Responsible for keeping the channels list up to date. Can be bound to the view using ChannelListViewModel.bindView function.

    • Constructor Detail

      • ChannelListViewModel

        ChannelListViewModel(FilterObject filter, QuerySorter<Channel> sort, Integer limit, Integer messageLimit, Integer memberLimit, ChatEventHandlerFactory chatEventHandlerFactory, ChatClient chatClient, GlobalState globalState)
        Parameters:
        filter - Filter for querying channels, should never be empty.
        sort - Defines the ordering of the channels.
        limit - The maximum number of channels to fetch.
        messageLimit - The number of messages to fetch for each channel.
        memberLimit - The number of members to fetch per channel.
        chatEventHandlerFactory - The instance of ChatEventHandlerFactory that will be used to create ChatEventHandler.
        chatClient - Entry point for all low-level operations.
        globalState - Global state of OfflinePlugin.