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