Community Channel Search Messages By Keyword Query Params
community channel specified sub-channel Keyword Message search Parameter.
Used for com.nexconn.chat.channel.CommunityChannel.createSearchMessagesByKeywordQuery, In community channel specified sub-channel by Keyword Search messages.
Supports two types Search mode:
-Simple search*: Only Set keyword and pageSize, Uses Timestamp Cursor automatically Pagination.
Time range search*: extra Set startTime and endTime, Uses offset Pagination.
Usage Example:
val params = CommunitySearchMessagesByKeywordParams(
channelId = "community_1",
subChannelId = "sub_001"
).apply {
keyword = "hello"
pageSize = 20
}
val query = CommunityChannel.createSearchMessagesByKeywordQuery(params)
val query = CommunityChannel.createSearchMessagesByKeywordQuery(params)
val params = CommunitySearchMessagesByKeywordParams(
channelId = "community_1",
subChannelId = "sub_001"
).apply {
keyword = "hello"
startTime = startTimestamp
endTime = endTimestamp
pageSize = 50
}
val query = CommunityChannel.createSearchMessagesByKeywordQuery(params)Parameters
community channel ID
sub-channel ID
Constructors
Functions
community channel ID
Query End time stamp (milli seconds).
Search keyword.
per page Search Result Count, Default 20.
Query Start time stamp (milli seconds).
sub-channel ID
Query End time stamp (milli seconds).
Search keyword.
per page Search Result Count, Default 20.
Query Start time stamp (milli seconds).