QChatSystemNotification class

Annotations
  • @JsonSerializable(explicitToJson: true)

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