Class MessageDigestInfo

  • All Implemented Interfaces:

    
    public class MessageDigestInfo
    
                        

    消息摘要信息类

    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() 获取会话类型。
      void setConversationType(ConversationType conversationType) 设置会话类型。
      String getTargetId() 获取会话 id。 根据不同的 conversationType,可能是聊天 id、讨论组 id、群组 id 或聊天室 id。
      void setTargetId(String targetId) 设置会话 id。 根据不同的 conversationType,可能是聊天 id、讨论组 id、群组 id 或聊天室 id。
      String getChannelId() 消息所属会话的业务标识。
      void setChannelId(String channelId) 设置 消息所属会话的业务标识。
      String getMessageUid() 获取服务器消息唯一 id(在同一个 Appkey 下全局唯一)
      void setMessageUid(String messageUid) 设置服务器消息唯一 id(在同一个 Appkey 下全局唯一)
      long getSentTime() 获取会话中最后一条消息的发送时间(Unix时间戳、毫秒)
      void setSentTime(long sentTime) 设置会话中最后一条消息的发送时间(Unix时间戳、毫秒)
      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()

        获取会话类型。

        Returns:

        会话类型。

      • setConversationType

         void setConversationType(ConversationType conversationType)

        设置会话类型。

        Parameters:
        conversationType - 会话类型。
      • getTargetId

         String getTargetId()

        获取会话 id。

        根据不同的 conversationType,可能是聊天 id、讨论组 id、群组 id 或聊天室 id。

        Returns:

        会话 id。

      • setTargetId

         void setTargetId(String targetId)

        设置会话 id。

        根据不同的 conversationType,可能是聊天 id、讨论组 id、群组 id 或聊天室 id。

        Parameters:
        targetId - 会话 id。
      • getChannelId

         String getChannelId()

        消息所属会话的业务标识。

        Returns:

        消息所属会话的业务标识。

      • setChannelId

         void setChannelId(String channelId)

        设置 消息所属会话的业务标识。

        Parameters:
        channelId - 消息所属会话的业务标识。
      • getMessageUid

         String getMessageUid()

        获取服务器消息唯一 id(在同一个 Appkey 下全局唯一)

        Returns:

        uid 服务器消息唯一 id(在同一个 Appkey 下全局唯一)

      • setMessageUid

         void setMessageUid(String messageUid)

        设置服务器消息唯一 id(在同一个 Appkey 下全局唯一)

        Parameters:
        messageUid - 服务器消息唯一 id(在同一个 Appkey 下全局唯一)
      • getSentTime

         long getSentTime()

        获取会话中最后一条消息的发送时间(Unix时间戳、毫秒)

        Returns:

        会话中最后一条消息的发送时间(Unix时间戳、毫秒)

      • setSentTime

         void setSentTime(long sentTime)

        设置会话中最后一条消息的发送时间(Unix时间戳、毫秒)

        Parameters:
        sentTime - 会话中最后一条消息的发送时间(Unix时间戳、毫秒)