Package io.rong.imlib.model
Class BlockedMessageInfo
-
- All Implemented Interfaces:
public class BlockedMessageInfo含有敏感词消息被拦截的信息类
yanke on 2021/7/12
-
-
Field Summary
Fields Modifier and Type Field Description public final static Creator<BlockedMessageInfo>CREATORpublic ConversationTypeconversationTypepublic StringtargetIdpublic StringchannelIdpublic StringblockMsgUIdpublic MessageBlockTypetypepublic Stringextrapublic intsourceTypepublic StringsourceContent
-
Method Summary
Modifier and Type Method Description ConversationTypegetConversationType()获取被拦截消息所在会话的会话类型。 StringgetTargetId()获取被拦截消息所在会话的会话 Id。 StringgetChannelId()StringgetBlockMsgUId()获取被拦截消息的唯一 Id. MessageBlockTypegetType()获取消息被拦截的原因。MessageBlockType StringgetExtra()获取被拦截消息的附加信息。 intgetSourceType()voidsetSourceType(int sourceType)StringgetSourceContent()voidsetSourceContent(String sourceContent)static BlockedMessageInfoobtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String extra)static BlockedMessageInfoobtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra)static BlockedMessageInfoobtain(ConversationType conversationType, String targetId, String blockMsgUId, MessageBlockType type, String channelId, String extra, int sourceType, String sourceContent)intdescribeContents()voidwriteToParcel(Parcel dest, int flags)StringtoString()-
-
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()
-
-
-
-