Package io.rong.imlib.model
Class BlockedMessageInfo
-
- All Implemented Interfaces:
public class BlockedMessageInfo
Information 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>
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()
Retrieves the conversation type of the conversation where the blocked message is located. String
getTargetId()
Retrieves the conversation ID of the session where the intercepted message is located. String
getChannelId()
String
getBlockMsgUId()
Retrieves the unique ID of the intercepted message. MessageBlockType
getType()
Retrieves the reason why a message was blocked. String
getExtra()
Retrieves additional information about the blocked message. 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()
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()
-
-
-
-