NIMModifyMessageParams class
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- NIMModifyMessageParams({NIMMessageAttachment? attachment, String? serverExtension, NIMMessagePushConfig? pushConfig, String? text, NIMMessageAntispamConfig? antispamConfig, bool clientAntispamEnabled = false, String? clientAntispamReplace, NIMMessageRouteConfig? routeConfig, int? subType})
-
NIMModifyMessageParams.fromJson(Map<
String, dynamic> map) -
factory
Properties
- antispamConfig ↔ NIMMessageAntispamConfig?
-
反垃圾相关配置
getter/setter pair
- attachment ↔ NIMMessageAttachment?
-
消息附属附件,根据消息类型继承实现
getter/setter pair
- clientAntispamEnabled ↔ bool
-
是否启用本地反垃圾
只针对文本消息生效
发送消息时候,如果该字段为true,文本消息则走本地反垃圾检测,检测后返回V2NIMClientAntispamOperateType,
返回0,直接发送该消息
返回1,发送替换后的文本消息
返回2,消息发送失败, 返回本地错误码
返回3,消息正常发送,由服务端拦截
getter/setter pair
- clientAntispamReplace ↔ String?
-
反垃圾命中后替换的文本
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- pushConfig ↔ NIMMessagePushConfig?
-
推送相关配置
getter/setter pair
- routeConfig ↔ NIMMessageRouteConfig?
-
路由抄送相关配置
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverExtension ↔ String?
-
消息服务端扩展,请使用 Json 字符串
getter/setter pair
- subType ↔ int?
-
消息子类型
getter/setter pair
- text ↔ String?
-
消息内容
getter/setter pair
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