NIMAntiSpamOption class
云信反垃圾配置
- Annotations
-
- @JsonSerializable()
Constructors
- NIMAntiSpamOption({bool enable = true, required String? content, String? antiSpamConfigId})
-
NIMAntiSpamOption.fromMap(Map<
String, dynamic> map) -
factory
Properties
- antiSpamConfigId ↔ String?
-
易盾反垃圾配置id,指定此消息选择过哪一个反垃圾配置
getter/setter pair
- content ↔ String?
-
开发者自定义的反垃圾字段,content 必须是 json 格式,仅适用于自定义消息类型
getter/setter pair
- enable ↔ bool
-
是否过易盾反垃圾,对于已开通易盾的用户有效,默认为true
如果应用已经开了易盾,默认消息都会走易盾,如果对单条消息设置 enable 为false,则此消息不会走易盾反垃圾,而是走通用反垃圾
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
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited