Class BlockedMessageInfo

  • All Implemented Interfaces:

    
    public class BlockedMessageInfo
    
                        

    Information about messages containing sensitive words being blocked

    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() Retrieves the conversation type of the conversation where the blocked message is located.
      String getTargetId() Retrieves the conversation ID of the session where the intercepted message is located.
      String getChannelId()
      String getBlockMsgUId() Retrieves the unique ID of the intercepted message.
      MessageBlockType getType() Retrieves the reason why a message was blocked.
      String getExtra() Retrieves additional information about the blocked message.
      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()

        Retrieves the conversation type of the conversation where the blocked message is located.

        Returns:

        The conversation type of the conversation where the blocked message is located.

      • getTargetId

         String getTargetId()

        Retrieves the conversation ID of the session where the intercepted message is located.

        Returns:

        The conversation ID of the session where the intercepted message is located.

      • getBlockMsgUId

         String getBlockMsgUId()

        Retrieves the unique ID of the intercepted message.

        Returns:

        The unique ID of the intercepted message.

      • getType

         MessageBlockType getType()

        Retrieves the reason why a message was blocked. MessageBlockType

        Returns:

        Indicates the reason for the block.

      • getExtra

         String getExtra()

        Retrieves additional information about the blocked message.

        Returns:

        Additional information about the blocked message.

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