1 package com.netease.nimlib.sdk.v2.notification.config;
7 private final boolean antispamEnabled;
11 private final String antispamCustomNotification;
18 this.antispamEnabled = antispamEnabled;
19 this.antispamCustomNotification = antispamCustomNotification;
23 return antispamEnabled;
27 return antispamCustomNotification;
32 public static final class V2NIMNotificationAntispamConfigBuilder {
34 private String antispamCustomNotification;
36 private V2NIMNotificationAntispamConfigBuilder() {
39 public static V2NIMNotificationAntispamConfigBuilder builder() {
40 return new V2NIMNotificationAntispamConfigBuilder();
43 public V2NIMNotificationAntispamConfigBuilder withAntispamEnabled(
boolean antispamEnabled) {
44 this.antispamEnabled = antispamEnabled;
48 public V2NIMNotificationAntispamConfigBuilder withAntispamCustomNotification(String antispamCustomNotification) {
49 this.antispamCustomNotification = antispamCustomNotification;
V2NIMNotificationAntispamConfig()
String getAntispamCustomNotification()
boolean isAntispamEnabled()
static final boolean DEFAULT_ANTISPAM_ENABLED
V2NIMNotificationAntispamConfig(boolean antispamEnabled, String antispamCustomNotification)