Action constructor

Action({
  1. String? message,
  2. String? rawData,
  3. String? action,
  4. String? oldScope,
  5. String? newScope,
  6. int? id,
  7. String? muid,
  8. User? sender,
  9. AppEntity? receiver,
  10. required String receiverUid,
  11. required String type,
  12. required String receiverType,
  13. String? category,
  14. DateTime? sentAt,
  15. DateTime? deliveredAt,
  16. DateTime? readAt,
  17. Map<String, dynamic>? metadata = const {},
  18. DateTime? readByMeAt,
  19. DateTime? deliveredToMeAt,
  20. DateTime? deletedAt,
  21. DateTime? editedAt,
  22. String? deletedBy,
  23. String? editedBy,
  24. DateTime? updatedAt,
  25. String? conversationId,
  26. int? parentMessageId,
  27. int? replyCount,
  28. AppEntity? actionBy,
  29. AppEntity? actionOn,
  30. AppEntity? actionFor,
  31. int? unreadRepliesCount,
  32. List<User>? mentionedUsers,
  33. bool? hasMentionedMe,
})

Constructs a new Action instance.

Implementation

Action({
  this.message,
  this.rawData,
  this.action,
  this.oldScope,
  this.newScope,
  int? id,
  String? muid,
  User? sender,
  AppEntity? receiver,
  required String receiverUid,
  required String type,
  required String receiverType,
  String? category,
  DateTime? sentAt,
  DateTime? deliveredAt,
  DateTime? readAt,
  Map<String, dynamic>? metadata = const {},
  DateTime? readByMeAt,
  DateTime? deliveredToMeAt,
  DateTime? deletedAt,
  DateTime? editedAt,
  String? deletedBy,
  String? editedBy,
  DateTime? updatedAt,
  String? conversationId,
  int? parentMessageId,
  int? replyCount,
  this.actionBy,
  this.actionOn,
  this.actionFor,
  int? unreadRepliesCount,
  List<User>? mentionedUsers,
  bool? hasMentionedMe,
}) : super(
        id: id ?? 0,
        muid: muid ?? '',
        sender: sender,
        receiver: receiver,
        receiverUid: receiverUid,
        type: type,
        receiverType: receiverType,
        category: category ?? CometChatMessageCategory.action,
        sentAt: sentAt,
        deliveredAt: deliveredAt,
        readAt: readAt,
        metadata: metadata,
        readByMeAt: readByMeAt,
        deliveredToMeAt: deliveredToMeAt,
        deletedAt: deletedAt,
        editedAt: editedAt,
        deletedBy: deletedBy,
        editedBy: editedBy,
        updatedAt: updatedAt,
        conversationId: conversationId,
        parentMessageId: parentMessageId ?? -1,
        replyCount: replyCount ?? 0,
        unreadRepliesCount: unreadRepliesCount ?? 0,
        hasMentionedMe: hasMentionedMe,
        mentionedUsers: mentionedUsers ?? [],
      );