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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReadReceiptInfo

        ReadReceiptInfo()
      • ReadReceiptInfo

        ReadReceiptInfo(String jsonString)
      • ReadReceiptInfo

        ReadReceiptInfo(Parcel in)
    • Method Detail

      • isReadReceiptMessage

         boolean isReadReceiptMessage()

        Indicates whether the message requires a receipt.

        Returns:

        Indicates whether the message requires a receipt.

      • 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).
      • 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).

      • 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).