Package ai.nexconn.chat.message.model
Class BlockedMessageInfo
-
- All Implemented Interfaces:
public final class BlockedMessageInfoInfo about a message blocked due to profanity filter.
Delivered via ai.nexconn.chat.handler.MessageHandler.onMessageBlocked when a sent message is blocked because it contains profanity words.
-
-
Field Summary
Fields Modifier and Type Field Description private final ChannelIdentifierchannelIdentifierprivate final StringmessageIdprivate final MessageBlockTypeblockTypeprivate final Stringextraprivate final IntegersourceTypeprivate final StringsourceContent
-
Constructor Summary
Constructors Constructor Description BlockedMessageInfo(ChannelIdentifier channelIdentifier, String messageId, MessageBlockType blockType, String extra, Integer sourceType, String sourceContent)
-
Method Summary
Modifier and Type Method Description final ChannelIdentifiergetChannelIdentifier()final StringgetMessageId()final MessageBlockTypegetBlockType()final StringgetExtra()final IntegergetSourceType()final StringgetSourceContent()-
-
Constructor Detail
-
BlockedMessageInfo
BlockedMessageInfo(ChannelIdentifier channelIdentifier, String messageId, MessageBlockType blockType, String extra, Integer sourceType, String sourceContent)
- Parameters:
channelIdentifier- Channel identifier of the blocked messagemessageId- Unique ID of the blocked messageblockType- Reason for blockingextra- Additional infosourceType- Message source trigger type: 0 = original message, 1 = metadata update, 2 = message modificationsourceContent- Source content; present when sourceType is 1 (metadata content) or 2 (message content)
-
-
Method Detail
-
getChannelIdentifier
final ChannelIdentifier getChannelIdentifier()
-
getMessageId
final String getMessageId()
-
getBlockType
final MessageBlockType getBlockType()
-
getExtra
final String getExtra()
-
getSourceType
final Integer getSourceType()
-
getSourceContent
final String getSourceContent()
-
-
-
-