Class MessageDigestInfo

  • All Implemented Interfaces:

    
    public class MessageDigestInfo
    
                        

    Message Digest Information Class

    Since:

    5.2.5

    Author:

    chenjialong

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageDigestInfo()
      MessageDigestInfo(ConversationType conversationType, String targetId, String channelId, String messageUid, long sentTime, boolean isMentionAll)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ConversationType getConversationType() Retrieves the conversation type.
      void setConversationType(ConversationType conversationType) Sets the conversation type.
      String getTargetId() Get the conversation ID.
      void setTargetId(String targetId) Sets the conversation ID.
      String getChannelId() The business identifier of the conversation to which the message belongs.
      void setChannelId(String channelId) Sets the business identifier of the conversation to which the message belongs.
      String getMessageUid() Retrieves the unique message ID from the server (globally unique within the same AppKey).
      void setMessageUid(String messageUid) Sets the server message unique ID (globally unique within the same AppKey).
      String getObjectName() The message type corresponding to messageUid
      void setObjectName(String objectName) Sets the message type, which must match the type of the message corresponding to the messageUid.
      long getSentTime() Gets the timestamp of the last message in the conversation (Unix timestamp in milliseconds).
      void setSentTime(long sentTime) Sets the sent time of the last message in the conversation (Unix timestamp, milliseconds).
      boolean isMentionAll()
      void setMentionAll(boolean mentionAll)
      String toString()
      int describeContents()
      void writeToParcel(Parcel dest, int flags)
      • Methods inherited from class java.lang.Object

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

      • MessageDigestInfo

        MessageDigestInfo()
      • MessageDigestInfo

        MessageDigestInfo(ConversationType conversationType, String targetId, String channelId, String messageUid, long sentTime, boolean isMentionAll)
    • Method Detail

      • getConversationType

         ConversationType getConversationType()

        Retrieves the conversation type.

        Returns:

        The conversation type.

      • setConversationType

         void setConversationType(ConversationType conversationType)

        Sets the conversation type.

        Parameters:
        conversationType - Specifies the conversation type.
      • getTargetId

         String getTargetId()

        Get the conversation ID.

        Depending on the conversationType, it could be a chat ID, discussion group ID, group ID, or chatroom ID.

        Returns:

        The conversation ID.

      • setTargetId

         void setTargetId(String targetId)

        Sets the conversation ID.

        Depending on the conversationType, this could be a chat ID, discussion group ID, group ID, or chatroom ID.

        Parameters:
        targetId - The conversation ID.
      • getChannelId

         String getChannelId()

        The business identifier of the conversation to which the message belongs.

        Returns:

        The business identifier of the conversation to which the message belongs.

      • setChannelId

         void setChannelId(String channelId)

        Sets the business identifier of the conversation to which the message belongs.

        Parameters:
        channelId - The business identifier of the conversation to which the message belongs.
      • getMessageUid

         String getMessageUid()

        Retrieves the unique message ID from the server (globally unique within the same AppKey).

        Returns:

        uid The unique message ID from the server (globally unique within the same AppKey).

      • setMessageUid

         void setMessageUid(String messageUid)

        Sets the server message unique ID (globally unique within the same AppKey).

        Parameters:
        messageUid - The server message unique ID (globally unique within the same AppKey)
      • getObjectName

         String getObjectName()

        The message type corresponding to messageUid

        Returns:

        objectName The message type

      • setObjectName

         void setObjectName(String objectName)

        Sets the message type, which must match the type of the message corresponding to the messageUid.

        Parameters:
        objectName - The message type
      • getSentTime

         long getSentTime()

        Gets the timestamp of the last message in the conversation (Unix timestamp in milliseconds).

        Returns:

        The timestamp of the last message in the conversation (Unix timestamp in milliseconds).

      • setSentTime

         void setSentTime(long sentTime)

        Sets the sent time of the last message in the conversation (Unix timestamp, milliseconds).

        Parameters:
        sentTime - The sent time of the last message in the conversation (Unix timestamp, milliseconds)