Class SearchChannelsParams

  • All Implemented Interfaces:

    
    public final class SearchChannelsParams
    
                        

    Search channels parameters.

    Used with ai.nexconn.chat.channel.BaseChannel.searchChannels to search for matching channels and their matching message counts based on a keyword.

    Usage Example:

    val params = SearchChannelsParams(
        keyword = "hello",
        channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP)
    ).apply {
        messageTypes = listOf(MessageType.TEXT)
    }
    BaseChannel.searchChannels(params) { results, error ->
        // ...
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<String> getMessageTypes() Message type filter list.
      final Unit setMessageTypes(List<String> messageTypes) Message type filter list.
      final String getKeyword() Search keyword.
      final List<ChannelType> getChannelTypes() List of channel types to search.
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SearchChannelsParams

        SearchChannelsParams(String keyword, List<ChannelType> channelTypes)
    • Method Detail

      • getMessageTypes

         final List<String> getMessageTypes()

        Message type filter list.

        When set, only messages of the specified types are included in search results. Defaults to null, which searches all types.

      • setMessageTypes

         final Unit setMessageTypes(List<String> messageTypes)

        Message type filter list.

        When set, only messages of the specified types are included in search results. Defaults to null, which searches all types.

      • getKeyword

         final String getKeyword()

        Search keyword.