QChatSendSystemNotificationParam class Null safety

Annotations

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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