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

NIMMessage