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 BooleanplatformCircumventedprivate final List<String>blocklistsMatched
-
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 first 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. final List<String>getBlocklistsMatched()The blocklists matched by the message. -
-
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 first 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.
-
getBlocklistsMatched
final List<String> getBlocklistsMatched()
The blocklists matched by the message.
-
-
-
-