NIMChatroomMessage constructor

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