SearchChannelsParams

public final class SearchChannelsParams

Search channels Parameter.

Used for com.nexconn.chat.channel.BaseChannel.searchChannels, Based on Keyword Search match channel and its matching message Count.

Usage Example:

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

Parameters

channelTypes

to Search Channel type list Search keyword

Constructors

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

Properties

Link copied to clipboard
private final List<ChannelType> channelTypes

Search Message class type List.

Link copied to clipboard
private final String keyword

to Search Channel type list

Link copied to clipboard
private List<String> messageTypes

Set only after Search match specified Type message.

Functions

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

Search Message class type List.

Link copied to clipboard
public final String getKeyword()

to Search Channel type list

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

Set only after Search match specified Type message.

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

Set only after Search match specified Type message.

Link copied to clipboard
public String toString()