NIMChatroomMessage constructor
NIMChatroomMessage({
- bool enableHistory = true,
- bool isHighPriorityMessage = false,
- NIMChatroomMessageExtension? extension,
- String? messageId,
- String? sessionId,
- NIMSessionType? sessionType,
- required NIMMessageType messageType,
- int? messageSubType,
- NIMMessageStatus? status,
- required NIMMessageDirection messageDirection,
- String? fromAccount,
- String? content,
- required int timestamp,
- NIMMessageAttachment? messageAttachment,
- NIMMessageAttachmentStatus? attachmentStatus,
- String? uuid,
- int? serverId,
- Map<
String, dynamic> ? remoteExtension, - Map<
String, dynamic> ? localExtension, - String? callbackExtension,
- Map<
String, dynamic> ? pushPayload, - String? pushContent,
- NIMMemberPushOption? memberPushOption,
- NIMClientType? senderClientType,
- NIMAntiSpamOption? antiSpamOption,
- bool messageAck = false,
- bool hasSendAck = false,
- int ackCount = 0,
- int unAckCount = 0,
- bool clientAntiSpam = false,
- bool isInBlackList = false,
- bool isChecked = false,
- bool sessionUpdate = true,
- NIMMessageThreadOption? messageThreadOption,
- int? quickCommentUpdateTime,
- bool isDeleted = false,
- Map<
String, dynamic> ? yidunAntiCheating, - String? env,
- String? fromNickname,
- bool? isRemoteRead,
- String? yidunAntiSpamExt,
- String? yidunAntiSpamRes,
Implementation
NIMChatroomMessage({
this.enableHistory = true,
this.isHighPriorityMessage = false,
this.extension,
String? messageId,
String? sessionId,
NIMSessionType? sessionType,
required NIMMessageType messageType,
int? messageSubType,
NIMMessageStatus? status,
required NIMMessageDirection messageDirection,
String? fromAccount,
String? content,
required int timestamp,
NIMMessageAttachment? messageAttachment,
NIMMessageAttachmentStatus? attachmentStatus,
String? uuid,
int? serverId,
Map<String, dynamic>? remoteExtension,
Map<String, dynamic>? localExtension,
String? callbackExtension,
Map<String, dynamic>? pushPayload,
String? pushContent,
NIMMemberPushOption? memberPushOption,
NIMClientType? senderClientType,
NIMAntiSpamOption? antiSpamOption,
bool messageAck = false,
bool hasSendAck = false,
int ackCount = 0,
int unAckCount = 0,
bool clientAntiSpam = false,
bool isInBlackList = false,
bool isChecked = false,
bool sessionUpdate = true,
NIMMessageThreadOption? messageThreadOption,
int? quickCommentUpdateTime,
bool isDeleted = false,
Map<String, dynamic>? yidunAntiCheating,
String? env,
String? fromNickname,
bool? isRemoteRead,
String? yidunAntiSpamExt,
String? yidunAntiSpamRes,
}) : super(
messageId: messageId,
sessionId: sessionId,
sessionType: sessionType,
messageType: messageType,
messageSubType: messageSubType,
status: status,
messageDirection: messageDirection,
fromAccount: fromAccount,
content: content,
timestamp: timestamp,
messageAttachment: messageAttachment,
attachmentStatus: attachmentStatus,
uuid: uuid,
serverId: serverId,
remoteExtension: remoteExtension,
localExtension: localExtension,
callbackExtension: callbackExtension,
pushPayload: pushPayload,
pushContent: pushContent,
memberPushOption: memberPushOption,
senderClientType: senderClientType,
antiSpamOption: antiSpamOption,
messageAck: messageAck,
hasSendAck: hasSendAck,
ackCount: ackCount,
unAckCount: unAckCount,
clientAntiSpam: clientAntiSpam,
isInBlackList: isInBlackList,
isChecked: isChecked,
sessionUpdate: sessionUpdate,
messageThreadOption: messageThreadOption,
quickCommentUpdateTime: quickCommentUpdateTime,
isDeleted: isDeleted,
yidunAntiCheating: yidunAntiCheating,
env: env,
fromNickname: fromNickname,
isRemoteRead: isRemoteRead,
);