Package io.getstream.chat.android.models
Class Moderation
-
- All Implemented Interfaces:
public final class ModerationModel holding data for a message moderated by Moderation V2.
-
-
Field Summary
Fields Modifier and Type Field Description private final ModerationActionactionprivate final StringoriginalTextprivate final List<String>textHarmsprivate final List<String>imageHarmsprivate final StringblocklistMatchedprivate final StringsemanticFilterMatchedprivate final BooleanplatformCircumvented
-
Constructor Summary
Constructors Constructor Description Moderation(ModerationAction action, String originalText, List<String> textHarms, List<String> imageHarms, String blocklistMatched, String semanticFilterMatched, Boolean platformCircumvented)
-
Method Summary
Modifier and Type Method Description final ModerationActiongetAction()The action taken by the moderation system. final StringgetOriginalText()The original text of the message. final List<String>getTextHarms()The list of harmful text detected in the message. final List<String>getImageHarms()The list of harmful images detected in the message. final StringgetBlocklistMatched()The blocklist matched by the message. final StringgetSemanticFilterMatched()The semantic filter matched by the message. final BooleangetPlatformCircumvented()true/false if the message triggered the platform circumvention model. -
-
Method Detail
-
getAction
final ModerationAction getAction()
The action taken by the moderation system.
-
getOriginalText
final String getOriginalText()
The original text of the message.
-
getTextHarms
final List<String> getTextHarms()
The list of harmful text detected in the message.
-
getImageHarms
final List<String> getImageHarms()
The list of harmful images detected in the message.
-
getBlocklistMatched
final String getBlocklistMatched()
The blocklist matched by the message.
-
getSemanticFilterMatched
final String getSemanticFilterMatched()
The semantic filter matched by the message.
-
getPlatformCircumvented
final Boolean getPlatformCircumvented()
true/false if the message triggered the platform circumvention model.
-
-
-
-