SearchMessagesByTimeRangeQueryParams

by Keyword and Time range search message Parameter.

Used for com.nexconn.chat.channel.BaseChannel.createSearchMessagesByTimeRangeQuery Creates a pagination query object.

Usage Example:

val params = SearchMessagesByTimeRangeQueryParams(
channel = channel,
keyword = "hello",
startTime = startTimestamp,
endTime = endTimestamp
)
val query = BaseChannel.createSearchMessagesByTimeRangeQuery(params)

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

Parameters

keyword

Search keyword

startTime

Query Start time stamp (milli seconds), 0 Indicates no start time limit

endTime

Query End time stamp (milli seconds), 0 Indicates using current time

pageSize

每页搜索结果数量,默认 20

Constructors

Link copied to clipboard
public SearchMessagesByTimeRangeQueryParams SearchMessagesByTimeRangeQueryParams(BaseChannel channel, String keyword, Long startTime, Long endTime, Integer pageSize)

Properties

Link copied to clipboard
private final BaseChannel channel
Link copied to clipboard
private final Long endTime
Link copied to clipboard
private final String keyword
Link copied to clipboard
private final Integer pageSize
Link copied to clipboard
private final Long startTime

Functions

Link copied to clipboard
public final BaseChannel getChannel()
Link copied to clipboard
public final Long getEndTime()
Link copied to clipboard
public final String getKeyword()
Link copied to clipboard
public final Integer getPageSize()
Link copied to clipboard
public final Long getStartTime()