Class ReadReceiptInfo
-
- All Implemented Interfaces:
public class ReadReceiptInfoOnly 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>CREATORpublic booleanisReadReceiptMessagepublic HashMap<String, Long>respondUserIdList
-
Constructor Summary
Constructors Constructor Description ReadReceiptInfo()ReadReceiptInfo(String jsonString)ReadReceiptInfo(Parcel in)
-
Method Summary
Modifier and Type Method Description booleanisReadReceiptMessage()Indicates whether the message requires a receipt. voidsetIsReadReceiptMessage(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). voidsetRespondUserIdList(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). JSONObjecttoJSON()booleanhasRespond()Indicates whether a message receipt response has been sent (only valid for the message receiver). intdescribeContents()voidwriteToParcel(Parcel dest, int flags)voidsetHasRespond(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).
-
-
-
-