Package io.rong.message
Class ReadReceiptMessage
-
- All Implemented Interfaces:
public class ReadReceiptMessageRead Receipt Notification Message
This class represents a read receipt notification message. This message is neither stored nor counted in the unread message count.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumReadReceiptMessage.ReadReceiptType
-
Field Summary
Fields Modifier and Type Field Description public longlastMessageSendTimepublic StringmessageUIdpublic ReadReceiptMessage.ReadReceiptTypetypepublic final static Creator<ReadReceiptMessage>CREATOR
-
Constructor Summary
Constructors Constructor Description ReadReceiptMessage(long sendTime)ReadReceiptMessage(String uId)ReadReceiptMessage(long sendTime, String uId, ReadReceiptMessage.ReadReceiptType type)ReadReceiptMessage(Array<byte> data)ReadReceiptMessage(Parcel in)
-
Method Summary
Modifier and Type Method Description longgetLastMessageSendTime()Retrieves the timestamp (in milliseconds) of the last message sent. voidsetLastMessageSendTime(long lastMessageSendTime)Sets the send time of the last message (in milliseconds) StringgetMessageUId()Retrieves the UID (RCglobally unique ID) of the last message. voidsetMessageUId(String messageUId)Sets the UID of the last message (RCglobally unique ID). ReadReceiptMessage.ReadReceiptTypegetType()Get message type voidsetType(ReadReceiptMessage.ReadReceiptType type)Sets the message type static ReadReceiptMessageobtain(long sendTime)Creates a message instance. Array<byte>encode()voidwriteToParcel(Parcel dest, int flags)intdescribeContents()-
-
Constructor Detail
-
ReadReceiptMessage
ReadReceiptMessage(long sendTime)
-
ReadReceiptMessage
ReadReceiptMessage(String uId)
-
ReadReceiptMessage
ReadReceiptMessage(long sendTime, String uId, ReadReceiptMessage.ReadReceiptType type)
-
ReadReceiptMessage
ReadReceiptMessage(Array<byte> data)
-
ReadReceiptMessage
ReadReceiptMessage(Parcel in)
-
-
Method Detail
-
getLastMessageSendTime
long getLastMessageSendTime()
Retrieves the timestamp (in milliseconds) of the last message sent.
- Returns:
The timestamp (in milliseconds) of the last message sent.
-
setLastMessageSendTime
void setLastMessageSendTime(long lastMessageSendTime)
Sets the send time of the last message (in milliseconds)
- Parameters:
lastMessageSendTime- The send time of the last message (in milliseconds)
-
getMessageUId
String getMessageUId()
Retrieves the UID (RCglobally unique ID) of the last message.
- Returns:
The UID (RCglobally unique ID) of the last message
-
setMessageUId
void setMessageUId(String messageUId)
Sets the UID of the last message (RCglobally unique ID).
- Parameters:
messageUId- The UID of the last message (RCglobally unique ID).
-
getType
ReadReceiptMessage.ReadReceiptType getType()
Get message type
- Returns:
Message type
-
setType
void setType(ReadReceiptMessage.ReadReceiptType type)
Sets the message type
- Parameters:
type- The message type
-
obtain
static ReadReceiptMessage obtain(long sendTime)
Creates a message instance.
- Parameters:
sendTime- The timestamp when the message is sent- Returns:
The message instance.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
-
-
-