Class ReadReceiptInfo
-
- All Implemented Interfaces:
public class ReadReceiptInfo
Only messages in groups and discussion groups require this attribute; for other types of conversations, this attribute is NULL.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Creator<ReadReceiptInfo>
CREATOR
public boolean
isReadReceiptMessage
public HashMap<String, Long>
respondUserIdList
-
Constructor Summary
Constructors Constructor Description ReadReceiptInfo()
ReadReceiptInfo(String jsonString)
ReadReceiptInfo(Parcel in)
-
Method Summary
Modifier and Type Method Description boolean
isReadReceiptMessage()
Indicates whether the message requires a receipt. void
setIsReadReceiptMessage(boolean isReadReceiptMessage)
HashMap<String, Long>
getRespondUserIdList()
Retrieves the list of userIds of members who have responded to this message receipt in the conversation (key: userId, value: respondTime). void
setRespondUserIdList(HashMap<String, Long> respondUserIdList)
Sets the list of user IDs of members who have responded to this message receipt in the conversation (key: userId, value: respondTime). JSONObject
toJSON()
boolean
hasRespond()
Indicates whether a message receipt response has been sent (only valid for the message receiver). int
describeContents()
void
writeToParcel(Parcel dest, int flags)
void
setHasRespond(boolean hasRespond)
Sets whether a message receipt response has been sent (only valid for the message receiver). -
-
Method Detail
-
isReadReceiptMessage
boolean isReadReceiptMessage()
Indicates whether the message requires a receipt.
- Returns:
Indicates whether the message requires a receipt.
-
setIsReadReceiptMessage
void setIsReadReceiptMessage(boolean isReadReceiptMessage)
-
getRespondUserIdList
HashMap<String, Long> getRespondUserIdList()
Retrieves the list of userIds of members who have responded to this message receipt in the conversation (key: userId, value: respondTime).
- Returns:
The list of userIds of members who have responded to this message receipt in the conversation (key: userId, value: respondTime).
-
setRespondUserIdList
void setRespondUserIdList(HashMap<String, Long> respondUserIdList)
Sets the list of user IDs of members who have responded to this message receipt in the conversation (key: userId, value: respondTime).
- Parameters:
respondUserIdList
- The list of user IDs of members who have responded to this message receipt in the conversation (key: userId, value: respondTime).
-
toJSON
JSONObject toJSON()
-
hasRespond
boolean hasRespond()
Indicates whether a message receipt response has been sent (only valid for the message receiver).
- Returns:
Indicates whether a message receipt response has been sent (only valid for the message receiver).
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
setHasRespond
void setHasRespond(boolean hasRespond)
Sets whether a message receipt response has been sent (only valid for the message receiver).
- Parameters:
hasRespond
- Indicates whether a message receipt response has been sent (only valid for the message receiver).
-
-
-
-