public class LiveChatHistoryRPC extends RPC
RPC.MsgType| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HISTORY |
TYPE_ADDED, TYPE_CHANGED, TYPE_CONNECTED, TYPE_PING, TYPE_READY, TYPE_RESULT| Constructor and Description |
|---|
LiveChatHistoryRPC() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
loadHistory(int integer,
java.lang.String roomId,
java.util.Date oldestMessageTimestamp,
java.lang.Integer count,
java.util.Date lastTimestamp)
TODO: 18/6/17 look for unread messages or new messages
HALF TESTED
|
getRemoteMethodObject, parsepublic static java.lang.String loadHistory(int integer,
java.lang.String roomId,
java.util.Date oldestMessageTimestamp,
java.lang.Integer count,
java.util.Date lastTimestamp)
integer - roomId - oldestMessageTimestamp - Used to do pagination (null means latest timestamp)count - The message quantity, messages are loaded having timestamp older than @param oldestMessageTimestamplastTimestamp - Date of the last time when client got data (Used to calculate unread)[unread count suggests number of unread messages having timestamp above @param lastTimestamp]