QChatSystemNotification class Null safety

Annotations

Constructors

QChatSystemNotification({QChatSystemNotificationType? type, int? msgIdServer, String? extension, int? status, bool? persistEnable, String? attach, bool? pushEnable, bool? needPushNick, bool? needBadge, String? pushContent, String? env, String? pushPayload, String? body, int? channelId, int? serverId, int? time, bool? routeEnable, String? fromAccount, String? fromNick, String? fromDeviceId, int? fromClientType, String? callbackExtension, QChatSystemNotificationAttachment? attachment, int? updateTime, String? msgIdClient, List<String>? toAccids})
QChatSystemNotification.fromJson(Map<String, dynamic> json)
factory

Properties

attach String?
通知附件
read / write
attachment QChatSystemNotificationAttachment?
通知附件字符串解析后的结构
@JsonKey(fromJson: QChatSystemNotificationAttachment._fromJson, toJson: QChatSystemNotificationAttachment._toJson), read / write
body String?
通知内容
read / write
callbackExtension String?
获取第三方回调回来的自定义扩展字段 第三方回调回来的自定义扩展字段
read / write
channelId int?
通知所属的channelId
read / write
env String?
获取环境变量 用于指向不同的抄送,第三方回调等配置
read / write
extension String?
扩展字段
read / write
fromAccount String?
通知发送者的accid
read / write
fromClientType int?
通知发送者这的客户端类型
read / write
fromDeviceId String?
发送方设备id
read / write
fromNick String?
发送方昵称
read / write
hashCode int
The hash code for this object.
read-only, inherited
msgIdClient String?
客户端生成的消息id, 会用于去重
read / write
msgIdServer int?
服务器生成的通知id,全局唯一
read / write
needBadge bool?
是否需要消息计数
read / write
needPushNick bool?
是否需要推送昵称
read / write
persistEnable bool?
是否存离线,只有toAccids不为空,才能设置为存离线
read / write
pushContent String?
自定义推送文案
read / write
pushEnable bool?
是否需要推送,默认false
read / write
pushPayload String?
第三方自定义的推送属性,限制使用json格式
read / write
routeEnable bool?
是否需要抄送,默认true
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
serverId int?
通知所属的serverId
read / write
status int?
状态,参考QChatSystemMsgStatus,可以自定义
read / write
time int?
消息发送时间
read / write
toAccids List<String>?
通知接收者账号列表
read / write
type QChatSystemNotificationType?
通知类型, 参考QChatSystemMsgType
@JsonKey(fromJson: _systemNotificationTypeFromJson, toJson: __systemNotificationTypeToJson), read / write
updateTime int?
通知更新时间
read / write

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