Get Messages Around Time Params
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) {
}
}
}Content copied to clipboard
Parameters
before Count
Get reference When time Before message Count
after Count
获取基准时间之后的消息数量
Constructors
Link copied to clipboard
public GetMessagesAroundTimeParams GetMessagesAroundTimeParams(Long sentTime, Integer beforeCount, Integer afterCount)