Class BlockedMessageInfo

  • All Implemented Interfaces:

    
    public class BlockedMessageInfo
    
                        

    含有敏感词消息被拦截的信息类

    Author:

    yanke on 2021/7/12

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ConversationType getConversationType() /~chinese 获取被拦截消息所在会话的会话类型。
      String getTargetId() /~chinese 获取被拦截消息所在会话的会话 Id。
      String getChannelId()
      String getBlockMsgUId() /~chinese 获取被拦截消息的唯一 Id.
      MessageBlockType getType() /~chinese 获取消息被拦截的原因。MessageBlockType
      String getExtra() /~chinese 获取被拦截消息的附加信息。
      int getSourceType()
      void setSourceType(int sourceType)
      String getSourceContent()
      void setSourceContent(String sourceContent)
      static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String extra)
      static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra)
      static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra, int sourceType, String sourceContent)
      int describeContents()
      void writeToParcel(Parcel dest, int flags)
      String toString()
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getConversationType

         ConversationType getConversationType()

        /~chinese 获取被拦截消息所在会话的会话类型。

        Returns:

        被拦截消息所在会话的会话类型。

      • getTargetId

         String getTargetId()

        /~chinese 获取被拦截消息所在会话的会话 Id。

        Returns:

        被拦截消息所在会话的会话 Id。

      • getBlockMsgUId

         String getBlockMsgUId()

        /~chinese 获取被拦截消息的唯一 Id.

        Returns:

        被拦截消息的唯一 Id.

      • getType

         MessageBlockType getType()

        /~chinese 获取消息被拦截的原因。MessageBlockType

        Returns:

        被拦截原因。

      • getExtra

         String getExtra()

        /~chinese 获取被拦截消息的附加信息。

        Returns:

        被拦截消息的附加信息。

      • obtain

         static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String extra)
      • obtain

         static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra)
      • obtain

         static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra, int sourceType, String sourceContent)