NIMMessage constructor

  1. @visibleForTesting
NIMMessage({
  1. String? messageId,
  2. String? sessionId,
  3. NIMSessionType? sessionType,
  4. required NIMMessageType messageType,
  5. int? messageSubType,
  6. NIMMessageStatus? status,
  7. required NIMMessageDirection messageDirection,
  8. String? fromAccount,
  9. String? content,
  10. required int timestamp,
  11. NIMMessageAttachment? messageAttachment,
  12. NIMMessageAttachmentStatus? attachmentStatus,
  13. String? uuid,
  14. int? serverId,
  15. NIMCustomMessageConfig? config,
  16. Map<String, dynamic>? remoteExtension,
  17. Map<String, dynamic>? localExtension,
  18. String? callbackExtension,
  19. Map<String, dynamic>? pushPayload,
  20. String? pushContent,
  21. NIMMemberPushOption? memberPushOption,
  22. NIMClientType? senderClientType,
  23. NIMAntiSpamOption? antiSpamOption,
  24. bool messageAck = false,
  25. bool hasSendAck = false,
  26. int ackCount = 0,
  27. int unAckCount = 0,
  28. bool clientAntiSpam = false,
  29. bool isInBlackList = false,
  30. bool isChecked = false,
  31. bool sessionUpdate = true,
  32. NIMMessageThreadOption? messageThreadOption,
  33. int? quickCommentUpdateTime,
  34. bool isDeleted = false,
  35. Map<String, dynamic>? yidunAntiCheating,
  36. String? env,
  37. String? fromNickname,
  38. bool? isRemoteRead,
  39. String? yidunAntiSpamExt,
  40. String? yidunAntiSpamRes,
  41. NIMMessageRobotInfo? robotInfo,
})

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,
    this.yidunAntiSpamExt,
    this.yidunAntiSpamRes,
    this.robotInfo});