GetMessagesAroundTimeParams

public final class GetMessagesAroundTimeParams

Get specified When around the time point message's Parameter.

Used for com.nexconn.chat.channel.BaseChannel.getMessagesAroundTime, Based on given Send Timestamp, respectively Get This When point in time Before and After specified Count message.

Usage Example:

val params = GetMessagesAroundTimeParams(
sentTime = targetMessage.sentTime,
beforeCount = 10,
afterCount = 10
)
channel.getMessagesAroundTime(params) { messages, error ->
if (error == null && messages != null) {
}
}
}

Parameters

beforeCount

Get reference When time Before message Count

afterCount

获取基准时间之后的消息数量

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()