NIMMessageAntispamConfig class
消息反垃圾设置
- Annotations
-
- @JsonSerializable.new(explicitToJson: true)
Constructors
- NIMMessageAntispamConfig({bool? antispamEnabled, String? antispamBusinessId, String? antispamCustomMessage, String? antispamCheating, String? antispamExtension})
-
NIMMessageAntispamConfig.fromJson(Map<
String, dynamic> map) -
factory
Properties
- antispamBusinessId ↔ String?
-
指定易盾业务id,而不使用云信后台配置的
getter/setter pair
- antispamCheating ↔ String?
-
易盾反作弊(辅助检测数据),json格式,限制长度1024
getter/setter pair
- antispamCustomMessage ↔ String?
-
自定义消息中需要反垃圾的内容(仅当消息类型为自定义消息时有效)
getter/setter pair
- antispamEnabled ↔ bool?
-
指定是否需要过安全通(对于已开通安全通的用户有效,默认消息都会走安全通,如果对单条消息设置 enable 为false,则此消息不会走安全通)。
true:需要,
false:不需要
该字段为true,其他字段才生效
getter/setter pair
- antispamExtension ↔ String?
-
易盾反垃圾(增强检测数据),json格式,限制长度1024
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited