GetMessagesAroundTimeParams

public final class GetMessagesAroundTimeParams

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) {
// ...
}
}

Parameters

sentTime

Reference sent timestamp in milliseconds.

beforeCount

Number of messages to fetch before the reference timestamp.

afterCount

Number of messages to fetch after the reference timestamp.

Constructors

Link copied to clipboard
public GetMessagesAroundTimeParams GetMessagesAroundTimeParams(Long sentTime, Integer beforeCount, Integer afterCount)

Properties

Link copied to clipboard
private final Integer afterCount
Link copied to clipboard
private final Integer beforeCount
Link copied to clipboard
private final Long sentTime

Functions

Link copied to clipboard
public final Integer getAfterCount()
Link copied to clipboard
public final Integer getBeforeCount()
Link copied to clipboard
public final Long getSentTime()