QChatSendMessageParam class Null safety

Annotations

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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