Package io.rong.imlib.model

## Class BlockedMessageInfo

- All Implemented Interfaces:

      public class BlockedMessageInfo

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

  Author:

    yanke on 2021/7/12

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static Creator<BlockedMessageInfo>` | `CREATOR` |
    `public ConversationType` | `conversationType` |
    `public String` | `targetId` |
    `public String` | `channelId` |
    `public String` | `blockMsgUId` |
    `public MessageBlockType` | `type` |
    `public String` | `extra` |
    `public int` | `sourceType` |
    `public String` | `sourceContent` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `ConversationType` | `getConversationType()` | 获取被拦截消息所在会话的会话类型。
    `String` | `getTargetId()` | 获取被拦截消息所在会话的会话 Id。
    `String` | `getChannelId()` |
    `String` | `getBlockMsgUId()` | 获取被拦截消息的唯一 Id.
    `MessageBlockType` | `getType()` | 获取消息被拦截的原因。MessageBlockType
    `String` | `getExtra()` | 获取被拦截消息的附加信息。
    `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()

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

      Returns:

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

    - #### getTargetId

           String getTargetId()

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

      Returns:

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

    - #### getChannelId

           String getChannelId()

    - #### getBlockMsgUId

           String getBlockMsgUId()

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

      Returns:

        被拦截消息的唯一 Id.

    - #### getType

           MessageBlockType getType()

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

      Returns:

        被拦截原因。

    - #### getExtra

           String getExtra()

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

      Returns:

        被拦截消息的附加信息。

    - #### getSourceType

           int getSourceType()

    - #### setSourceType

           void setSourceType(int sourceType)

    - #### getSourceContent

           String getSourceContent()

    - #### setSourceContent

           void setSourceContent(String sourceContent)

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

    - #### describeContents

           int describeContents()

    - #### writeToParcel

           void writeToParcel(Parcel dest, int flags)

    - #### toString

           String toString()