Package io.rong.imlib.model
Class BlockedMessageInfo
-
- All Implemented Interfaces:
public class BlockedMessageInfoInformation about messages containing sensitive words being blocked
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()Retrieves the conversation type of the conversation where the blocked message is located. StringgetTargetId()Retrieves the conversation ID of the session where the intercepted message is located. StringgetChannelId()StringgetBlockMsgUId()Retrieves the unique ID of the intercepted message. MessageBlockTypegetType()Retrieves the reason why a message was blocked. StringgetExtra()Retrieves additional information about the blocked message. 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()
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.
-
getChannelId
String getChannelId()
-
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.
-
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()
-
-
-
-