BlockedMessageInfo

public class BlockedMessageInfo

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

Author

yanke on 2021/7/12

See also

io.rong.imlib.IRongCoreListener.MessageBlockListener

Properties

Link copied to clipboard
public String blockMsgUId
被拦截的消息ID
Link copied to clipboard
public String channelId
频道ID
Link copied to clipboard
public ConversationType conversationType
会话类型
Link copied to clipboard
public final static Creator<BlockedMessageInfo> CREATOR
Link copied to clipboard
public String extra
附加信息
Link copied to clipboard
public String sourceContent
源内容。sourceType=1/2时返回;1扩展内容,2消息内容 目前只支持超级群*
Link copied to clipboard
public int sourceType
消息源触发类型。0 默认,原始消息;1 消息扩展;2 消息修改 目前只支持超级群*
Link copied to clipboard
public String targetId
会话ID
Link copied to clipboard
public MessageBlockType type
拦截原因

Functions

Link copied to clipboard
public int describeContents()
Link copied to clipboard
public String getBlockMsgUId()
/~chinese 获取被拦截消息的唯一 Id.
Link copied to clipboard
public String getChannelId()
Link copied to clipboard
public ConversationType getConversationType()
/~chinese 获取被拦截消息所在会话的会话类型。
Link copied to clipboard
public String getExtra()
/~chinese 获取被拦截消息的附加信息。
Link copied to clipboard
public String getSourceContent()
Link copied to clipboard
public int getSourceType()
Link copied to clipboard
public String getTargetId()
/~chinese 获取被拦截消息所在会话的会话 Id。
Link copied to clipboard
public MessageBlockType getType()
/~chinese 获取消息被拦截的原因。MessageBlockType
Link copied to clipboard
public static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String extra)
public static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra)
public static BlockedMessageInfo obtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra, int sourceType, String sourceContent)
Link copied to clipboard
public void setSourceContent(String sourceContent)
Link copied to clipboard
public void setSourceType(int sourceType)
Link copied to clipboard
public String toString()
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)