Get Messages Around Time Params
Parameters for fetching messages around a specific point in time.
Used with ai.nexconn.chat.channel.BaseChannel.getMessagesAroundTime to fetch a specified number of messages before and after the given sent timestamp.
Usage Example:
val params = GetMessagesAroundTimeParams(
sentTime = targetMessage.sentTime,
beforeCount = 10,
afterCount = 10
)
channel.getMessagesAroundTime(params) { messages, error ->
if (error == null && messages != null) {
// ...
}
}Content copied to clipboard
Parameters
sent Time
Reference sent timestamp in milliseconds.
before Count
Number of messages to fetch before the reference timestamp.
after Count
Number of messages to fetch after the reference timestamp.
Constructors
Link copied to clipboard
public GetMessagesAroundTimeParams GetMessagesAroundTimeParams(Long sentTime, Integer beforeCount, Integer afterCount)