QChatSendMessageParam class

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

QChatSendMessageParam({required int channelId, required int serverId, required NIMMessageType type, Map<String, dynamic>? extension, QChatMessageAntiSpamOption? antiSpamOption, String? attach, String? body, String? env, bool historyEnable = true, bool isRouteEnable = true, List<String>? mentionedAccidList, bool mentionedAll = false, List<int>? mentionedRoleIdList, bool needBadge = true, bool needPushNick = true, String? pushContent, bool pushEnable = true, Map<String, dynamic>? pushPayload, int? subType})
QChatSendMessageParam.fromJson(Map<String, dynamic> json)
factory

Properties

antiSpamOption QChatMessageAntiSpamOption?
消息反垃圾配置选项
getter/setter pair
attach String?
消息附件,通过NIMMessageAttachment#toMap()获得
getter/setter pair
body String?
消息body
getter/setter pair
channelId int
消息所属的channelId,必填
final
env String?
环境变量,用户可以根据不同的env配置不同的抄送和回调地址
getter/setter pair
extension Map<String, dynamic>?
消息自定义扩展,SDK会转成json字符串使用
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
historyEnable bool
该消息是否存储云端历史 默认true
getter/setter pair
isRouteEnable bool
是否需要抄送,默认true
getter/setter pair
mentionedAccidList List<String>?
被艾特的人的accid列表
getter/setter pair
mentionedAll bool
是否艾特所有人
getter/setter pair
mentionedRoleIdList List<int>?
被艾特的身份组的roleid列表
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>?
第三方自定义的推送属性,SDK会转成json字符串使用
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverId int
消息所属的serverId,必填
final
subType int?
消息子类型
getter/setter pair
type NIMMessageType
消息类型, 同TalkMsgTag,必填
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAttachment(NIMMessageAttachment attachment) → void
推荐使用此接口设置附件
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited