Package 

Class ChannelViewModelFactory

    • Constructor Detail

      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, QuerySorter<Channel> querySort, FilterObject filters, Integer channelLimit, Integer memberLimit, Integer messageLimit, ChatEventHandlerFactory chatEventHandlerFactory, Boolean isDraftMessageEnabled, QuerySorter<Message> messageSearchSort)
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        querySort - The sorting order for channels.
        filters - The base filters used to filter out channels.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
        messageLimit - The number of messages to fetch per channel.
        chatEventHandlerFactory - The instance of ChatEventHandlerFactory used to create ChatEventHandler.
        isDraftMessageEnabled - If the draft message feature is enabled.
        messageSearchSort - Sorting for message search results.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, QuerySorter<Channel> querySort, FilterObject filters, Integer channelLimit, Integer memberLimit, Integer messageLimit, ChatEventHandlerFactory chatEventHandlerFactory, Boolean isDraftMessageEnabled)
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        querySort - The sorting order for channels.
        filters - The base filters used to filter out channels.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
        messageLimit - The number of messages to fetch per channel.
        chatEventHandlerFactory - The instance of ChatEventHandlerFactory used to create ChatEventHandler.
        isDraftMessageEnabled - If the draft message feature is enabled.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, QuerySorter<Channel> querySort, FilterObject filters, Integer channelLimit, Integer memberLimit, Integer messageLimit, ChatEventHandlerFactory chatEventHandlerFactory)
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        querySort - The sorting order for channels.
        filters - The base filters used to filter out channels.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
        messageLimit - The number of messages to fetch per channel.
        chatEventHandlerFactory - The instance of ChatEventHandlerFactory used to create ChatEventHandler.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, QuerySorter<Channel> querySort, FilterObject filters, Integer channelLimit, Integer memberLimit, Integer messageLimit)
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        querySort - The sorting order for channels.
        filters - The base filters used to filter out channels.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
        messageLimit - The number of messages to fetch per channel.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, QuerySorter<Channel> querySort, FilterObject filters, Integer channelLimit, Integer memberLimit)
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        querySort - The sorting order for channels.
        filters - The base filters used to filter out channels.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, QuerySorter<Channel> querySort, FilterObject filters, Integer channelLimit)
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        querySort - The sorting order for channels.
        filters - The base filters used to filter out channels.
        channelLimit - The number of channels teo retrieve per page.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, QuerySorter<Channel> querySort, FilterObject filters)
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        querySort - The sorting order for channels.
        filters - The base filters used to filter out channels.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, QuerySorter<Channel> querySort)
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        querySort - The sorting order for channels.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient)
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
      • ChannelViewModelFactory

        ChannelViewModelFactory()
        Builds a factory for a ChannelListViewModel that queries channels by an explicit filter and sort.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, String predefinedFilterName, Map<String, Object> filterValues, Map<String, Object> sortValues, Integer channelLimit, Integer memberLimit, Integer messageLimit, ChatEventHandlerFactory chatEventHandlerFactory, Boolean isDraftMessageEnabled, QuerySorter<Message> messageSearchSort)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        predefinedFilterName - The name of the predefined filter registered on the backend.
        filterValues - Optional values interpolated into the predefined filter template.
        sortValues - Optional values interpolated into the predefined sort template.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
        messageLimit - The number of messages to fetch per channel.
        chatEventHandlerFactory - The instance of ChatEventHandlerFactory used to create ChatEventHandler.
        isDraftMessageEnabled - If the draft message feature is enabled.
        messageSearchSort - Sorting for message search results.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, String predefinedFilterName, Map<String, Object> filterValues, Map<String, Object> sortValues, Integer channelLimit, Integer memberLimit, Integer messageLimit, ChatEventHandlerFactory chatEventHandlerFactory, Boolean isDraftMessageEnabled)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        predefinedFilterName - The name of the predefined filter registered on the backend.
        filterValues - Optional values interpolated into the predefined filter template.
        sortValues - Optional values interpolated into the predefined sort template.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
        messageLimit - The number of messages to fetch per channel.
        chatEventHandlerFactory - The instance of ChatEventHandlerFactory used to create ChatEventHandler.
        isDraftMessageEnabled - If the draft message feature is enabled.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, String predefinedFilterName, Map<String, Object> filterValues, Map<String, Object> sortValues, Integer channelLimit, Integer memberLimit, Integer messageLimit, ChatEventHandlerFactory chatEventHandlerFactory)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        predefinedFilterName - The name of the predefined filter registered on the backend.
        filterValues - Optional values interpolated into the predefined filter template.
        sortValues - Optional values interpolated into the predefined sort template.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
        messageLimit - The number of messages to fetch per channel.
        chatEventHandlerFactory - The instance of ChatEventHandlerFactory used to create ChatEventHandler.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, String predefinedFilterName, Map<String, Object> filterValues, Map<String, Object> sortValues, Integer channelLimit, Integer memberLimit, Integer messageLimit)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        predefinedFilterName - The name of the predefined filter registered on the backend.
        filterValues - Optional values interpolated into the predefined filter template.
        sortValues - Optional values interpolated into the predefined sort template.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
        messageLimit - The number of messages to fetch per channel.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, String predefinedFilterName, Map<String, Object> filterValues, Map<String, Object> sortValues, Integer channelLimit, Integer memberLimit)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        predefinedFilterName - The name of the predefined filter registered on the backend.
        filterValues - Optional values interpolated into the predefined filter template.
        sortValues - Optional values interpolated into the predefined sort template.
        channelLimit - The number of channels teo retrieve per page.
        memberLimit - The number of members to fetch per channel.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, String predefinedFilterName, Map<String, Object> filterValues, Map<String, Object> sortValues, Integer channelLimit)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        predefinedFilterName - The name of the predefined filter registered on the backend.
        filterValues - Optional values interpolated into the predefined filter template.
        sortValues - Optional values interpolated into the predefined sort template.
        channelLimit - The number of channels teo retrieve per page.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, String predefinedFilterName, Map<String, Object> filterValues, Map<String, Object> sortValues)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        predefinedFilterName - The name of the predefined filter registered on the backend.
        filterValues - Optional values interpolated into the predefined filter template.
        sortValues - Optional values interpolated into the predefined sort template.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, String predefinedFilterName, Map<String, Object> filterValues)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        predefinedFilterName - The name of the predefined filter registered on the backend.
        filterValues - Optional values interpolated into the predefined filter template.
      • ChannelViewModelFactory

        ChannelViewModelFactory(ChatClient chatClient, String predefinedFilterName)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        chatClient - The prepared ChatClient instance required for fetching the data.
        predefinedFilterName - The name of the predefined filter registered on the backend.
      • ChannelViewModelFactory

        ChannelViewModelFactory(String predefinedFilterName)
        Builds a factory for a ChannelListViewModel that queries channels using a predefined filter resolved by the server.
        Parameters:
        predefinedFilterName - The name of the predefined filter registered on the backend.
      • ChannelViewModelFactory

        ChannelViewModelFactory(String groupKey, ChatClient chatClient, Boolean isDraftMessageEnabled, QuerySorter<Message> messageSearchSort)
        Grouped ChannelListViewModel factory.
        Parameters:
        groupKey - The name of the channels group.
        chatClient - The prepared ChatClient instance required for fetching the data.
        isDraftMessageEnabled - If the draft message feature is enabled.
        messageSearchSort - Optional sorting for message search results.