Package io.rong.message
Class ReadReceiptMessage
-
- All Implemented Interfaces:
public class ReadReceiptMessage
Read 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 enum
ReadReceiptMessage.ReadReceiptType
-
Field Summary
Fields Modifier and Type Field Description public long
lastMessageSendTime
public String
messageUId
public ReadReceiptMessage.ReadReceiptType
type
public 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 long
getLastMessageSendTime()
Retrieves the timestamp (in milliseconds) of the last message sent. void
setLastMessageSendTime(long lastMessageSendTime)
Sets the send time of the last message (in milliseconds) String
getMessageUId()
Retrieves the UID (RCglobally unique ID) of the last message. void
setMessageUId(String messageUId)
Sets the UID of the last message (RCglobally unique ID). ReadReceiptMessage.ReadReceiptType
getType()
Get message type void
setType(ReadReceiptMessage.ReadReceiptType type)
Sets the message type static ReadReceiptMessage
obtain(long sendTime)
Creates a message instance. Array<byte>
encode()
void
writeToParcel(Parcel dest, int flags)
int
describeContents()
-
-
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()
-
-
-
-