QChatMessage class Null safety

Annotations

Constructors

QChatMessage({required int qChatChannelId, required int qChatServerId, int? subType, int? serverStatus, bool? pushEnable, String? pushContent, bool? needPushNick, bool? needBadge, List<int>? mentionedRoleIdList, bool? mentionedAll, List<String>? mentionedAccidList, bool? historyEnable, String? env, QChatMessageAntiSpamOption? antiSpamOption, String? uuid, int? updateTime, int? time, String? content, NIMMessageAttachment? attachment, bool? resend, QChatMessageAntiSpamResult? antiSpamResult, NIMMessageAttachmentStatus? attachStatus, String? callbackExtension, NIMMessageDirection? direct, String? fromAccount, int? fromClientType, String? fromNick, Map<String, dynamic>? localExtension, int? msgIdServer, NIMMessageType? msgType, Map<String, dynamic>? pushPayload, Map<String, dynamic>? remoteExtension, QChatMessageRefer? replyRefer, bool? rootThread, bool? routeEnable, NIMMessageStatus? status, QChatMessageRefer? threadRefer, QChatMsgUpdateContent? updateContent, QChatMsgUpdateInfo? updateOperatorInfo})
QChatMessage.fromJson(Map<String, dynamic> json)
factory

Properties

antiSpamOption QChatMessageAntiSpamOption?
消息反垃圾配置选项
@JsonKey(fromJson: _qChatMessageAntiSpamOptionFromJson), read / write
antiSpamResult QChatMessageAntiSpamResult?
反垃圾结果,此结果仅对文本和图片有效
@JsonKey(fromJson: _qChatMessageAntiSpamResultFromJson), read / write
attachment NIMMessageAttachment?
消息附件对象。仅当MsgType为非text时有效
@JsonKey(fromJson: NIMMessageAttachment.fromJson, toJson: NIMMessageAttachment.toJson), read / write
attachStatus NIMMessageAttachmentStatus?
消息附件接收/发送状态
read / write
callbackExtension String?
第三方回调回来的自定义扩展字段
read / write
content String?
消息body
read / write
direct NIMMessageDirection?
消息方向:发出去的消息还是接收到的消息
read / write
env String?
环境变量 用于指向不同的抄送,第三方回调等配置
read / write
fromAccount String?
消息发送者的accid
read / write
fromClientType int?
消息发送者的客户端类型
read / write
fromNick String?
消息发送者昵称
read / write
hashCode int
The hash code for this object.
read-only, inherited
historyEnable bool?
该消息是否存储云端历史,默认true
read / write
localExtension Map<String, dynamic>?
本地扩展字段(仅本地有效)
@JsonKey(fromJson: castPlatformMapToDartMap), read / write
mentionedAccidList List<String>?
被@的人的accid列表
read / write
mentionedAll bool?
是否@所有人
read / write
mentionedRoleIdList List<int>?
被@的身份组的roleid列表
read / write
msgIdServer int?
消息服务端ID
read / write
msgType NIMMessageType?
消息类型
read / write
needBadge bool?
是否需要消息计数,默认true
read / write
needPushNick bool?
是否需要推送昵称,默认true
read / write
pushContent String?
自定义推送文案
read / write
pushEnable bool?
是否需要推送,默认true
read / write
pushPayload Map<String, dynamic>?
第三方自定义的推送属性
@JsonKey(fromJson: castPlatformMapToDartMap), read / write
qChatChannelId int
消息所属的channelId
read / write
qChatServerId int
消息所属的serverId
read / write
remoteExtension Map<String, dynamic>?
消息自定义ext
@JsonKey(fromJson: castPlatformMapToDartMap), read / write
replyRefer QChatMessageRefer?
被回复消息引用
@JsonKey(fromJson: _qChatMessageReferFromJson), read / write
resend bool?
是否重发
read / write
rootThread bool?
是否是根消息
read / write
routeEnable bool?
是否需要抄送,默认true
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
serverStatus int?
服务器消息状态
read / write
status NIMMessageStatus?
消息接收/发送状态。
read / write
subType int?
消息子类型
read / write
threadRefer QChatMessageRefer?
根消息引用
@JsonKey(fromJson: _qChatMessageReferFromJson), read / write
time int?
消息发送时间
read / write
updateContent QChatMsgUpdateContent?
消息更新内容,消息被修改/撤回/删除 才有值,否则为null
@JsonKey(fromJson: _qChatMsgUpdateContentFromJson), read / write
updateOperatorInfo QChatMsgUpdateInfo?
消息更新操作者的信息,消息被修改/撤回/删除 才有值,否则为null
@JsonKey(fromJson: qChatMsgUpdateInfoFromJson), read / write
updateTime int?
消息更新时间
read / write
uuid String?
消息的uuid, 该域在生成消息时即会填上
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