Package ai.nexconn.chat.params
Class SearchChannelsParams
-
- All Implemented Interfaces:
public final class SearchChannelsParamsSearch 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 -> // ... }
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>messageTypesprivate final Stringkeywordprivate final List<ChannelType>channelTypes
-
Constructor Summary
Constructors Constructor Description SearchChannelsParams(String keyword, List<ChannelType> channelTypes)
-
Method Summary
Modifier and Type Method Description final List<String>getMessageTypes()Message type filter list. final UnitsetMessageTypes(List<String> messageTypes)Message type filter list. final StringgetKeyword()Search keyword. final List<ChannelType>getChannelTypes()List of channel types to search. StringtoString()-
-
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.
-
getChannelTypes
final List<ChannelType> getChannelTypes()
List of channel types to search.
-
toString
String toString()
-
-
-
-