QChatMessage class

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