CommunitySearchMessagesByUserParams

community channel by user Search messages Parameter.

Used for com.nexconn.chat.channel.CommunityChannel.createSearchMessagesByUserQuery, In community channel by user ID Search messages.

Supports two types Search mode:

-

Specified sub-channel search*: Set subChannelId, Search in specified sub-channels.

Usage Example:
val params = CommunitySearchMessagesByUserParams(
channelId = "community_1",
subChannelId = "sub_001"
).apply {
userId = "user123"
pageSize = 20
}
val query = CommunityChannel.createSearchMessagesByUserQuery(params)

val query = CommunityChannel.createSearchMessagesByUserQuery(params)
val params = CommunitySearchMessagesByUserParams(
channelId = "community_1"
).apply {
userId = "user123"
pageSize = 20
}
val query = CommunityChannel.createSearchMessagesByUserQuery(params)

query.loadNextPage { messages, error ->
if (error == null && messages != null) {
// Handle search results
}
}

Parameters

channelId

community channel ID

subChannelId

sub-channel ID, null Searches in all sub-channels

Constructors

Link copied to clipboard
public CommunitySearchMessagesByUserParams CommunitySearchMessagesByUserParams(String channelId, String subChannelId)

Properties

Link copied to clipboard
private final String channelId

community channel ID

Link copied to clipboard
private Integer pageSize

per page Search Result Count, Default 20.

Link copied to clipboard
private final String subChannelId

sub-channel ID, null Searches in all sub-channels

Link copied to clipboard
private String userId

user ID.

Functions

Link copied to clipboard
public final String getChannelId()

community channel ID

Link copied to clipboard
public final Integer getPageSize()

per page Search Result Count, Default 20.

Link copied to clipboard
public final String getSubChannelId()

sub-channel ID, null Searches in all sub-channels

Link copied to clipboard
public final String getUserId()

user ID.

Link copied to clipboard
public final Unit setPageSize(Integer pageSize)

per page Search Result Count, Default 20.

Link copied to clipboard
public final Unit setUserId(String userId)

user ID.

Link copied to clipboard
public String toString()