SearchChannelsParams

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 ->
// ...
}

Parameters

keyword

Search keyword.

channelTypes

List of channel types to search.

Constructors

Link copied to clipboard
public SearchChannelsParams SearchChannelsParams(String keyword, List<ChannelType> channelTypes)

Properties

Link copied to clipboard
private final List<ChannelType> channelTypes

List of channel types to search.

Link copied to clipboard
private final String keyword

Search keyword.

Link copied to clipboard
private List<String> messageTypes

Message type filter list.

Functions

Link copied to clipboard
public final List<ChannelType> getChannelTypes()

List of channel types to search.

Link copied to clipboard
public final String getKeyword()

Search keyword.

Link copied to clipboard
public final List<String> getMessageTypes()

Message type filter list.

Link copied to clipboard
public final Unit setMessageTypes(List<String> messageTypes)

Message type filter list.

Link copied to clipboard
public String toString()