NIMMessage(- {String? messageId,
- String? sessionId,
- NIMSessionType? sessionType,
- required NIMMessageType messageType,
- NIMMessageType? messageSubType,
- NIMMessageStatus? status,
- required NIMMessageDirection messageDirection,
- String? fromAccount,
- String? content,
- required int timestamp,
- NIMMessageAttachment? messageAttachment,
- NIMMessageAttachmentStatus? attachmentStatus,
- String? uuid,
- int? serverId,
- NIMCustomMessageConfig? config,
- 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,
- bool isDeleted = false,
- Map<String, dynamic>? yidunAntiCheating,
- String? env,
- String? fromNickname,
- bool? isRemoteRead}
)
Implementation
@visibleForTesting
NIMMessage(
{this.messageId,
this.sessionId,
this.sessionType,
required this.messageType,
this.messageSubType,
this.status,
required this.messageDirection,
this.fromAccount,
this.content,
required this.timestamp,
this.messageAttachment,
this.attachmentStatus,
this.uuid,
this.serverId,
this.config,
this.remoteExtension,
this.localExtension,
this.callbackExtension,
this.pushPayload,
this.pushContent,
this.memberPushOption,
this.senderClientType,
this.antiSpamOption,
this.messageAck = false,
this.hasSendAck = false,
this.ackCount = 0,
this.unAckCount = 0,
this.clientAntiSpam = false,
this.isInBlackList = false,
this.isChecked = false,
this.sessionUpdate = true,
this.messageThreadOption,
this.quickCommentUpdateTime,
this.isDeleted = false,
this.yidunAntiCheating,
this.env,
this.fromNickname,
this.isRemoteRead});