QChatSendSystemNotificationParam class
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
-
QChatSendSystemNotificationParam({required int serverId, int? channelId, String? body, Map<
String, dynamic> ? extension, Map<String, dynamic> ? pushPayload, String? env, String? pushContent, List<String> ? toAccids, QChatSystemMessageToType? toType, int? status, bool needBadge = true, bool needPushNick = true, bool pushEnable = false, bool isRouteEnable = true, String? attach, bool persistEnable = false}) -
QChatSendSystemNotificationParam.fromJson(Map<
String, dynamic> json) -
factory
Properties
- attach ↔ String?
-
通知附件
getter/setter pair
- body ↔ String?
-
通知内容
getter/setter pair
- channelId → int?
-
通知所属的channelId
final
- env ↔ String?
-
环境变量,用户可以根据不同的env配置不同的抄送和回调地址
getter/setter pair
-
extension
↔ Map<
String, dynamic> ? -
扩展字段,SDK会转成json字符串使用
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRouteEnable ↔ bool
-
是否需要抄送,默认true
getter/setter pair
- needBadge ↔ bool
-
是否需要消息计数,默认true
getter/setter pair
- needPushNick ↔ bool
-
是否需要推送昵称,默认true
getter/setter pair
- persistEnable ↔ bool
-
是否存离线,只有toAccids不为空,才能设置为存离线,默认false
设置为离线的消息,发送时如果接收方不在线,上线后可以通过同步接口获得
getter/setter pair
- pushContent ↔ String?
-
自定义推送文案
getter/setter pair
- pushEnable ↔ bool
-
是否需要推送,默认false
getter/setter pair
-
pushPayload
↔ Map<
String, dynamic> ? -
第三方自定义的推送属性,SDK会转成json字符串使用
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverId → int
-
通知所属的serverId
final
- status ↔ int?
-
状态,可以自定义(status>= 10000)
getter/setter pair
-
toAccids
→ List<
String> ? -
通知接收者账号列表
final
- toType → QChatSystemMessageToType?
-
通知发送对象类型,对应下面四种情况,不需要主动设置
final
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