InteractiveMessage constructor

InteractiveMessage({
  1. required Map<String, dynamic> interactiveData,
  2. List<Interaction>? interactions,
  3. InteractionGoal? interactionGoal,
  4. List<String>? tags,
  5. int? id,
  6. String? muid,
  7. User? sender,
  8. AppEntity? receiver,
  9. required String receiverUid,
  10. required String type,
  11. required String receiverType,
  12. DateTime? sentAt,
  13. DateTime? deliveredAt,
  14. DateTime? readAt,
  15. Map<String, dynamic>? metadata,
  16. DateTime? readByMeAt,
  17. DateTime? deliveredToMeAt,
  18. DateTime? deletedAt,
  19. DateTime? editedAt,
  20. String? deletedBy,
  21. String? editedBy,
  22. DateTime? updatedAt,
  23. String? conversationId,
  24. int? parentMessageId,
  25. int? replyCount,
  26. bool allowSenderInteraction = false,
  27. int? unreadRepliesCount,
})

Constructs a new InteractiveMessage instance.

Implementation

InteractiveMessage({
  required this.interactiveData,
  this.interactions,
  this.interactionGoal,
  this.tags,
  int? id,
  String? muid,
  User? sender,
  AppEntity? receiver,
  required String receiverUid,
  required String type,
  required String receiverType,
  DateTime? sentAt,
  DateTime? deliveredAt,
  DateTime? readAt,
  Map<String, dynamic>? metadata,
  DateTime? readByMeAt,
  DateTime? deliveredToMeAt,
  DateTime? deletedAt,
  DateTime? editedAt,
  String? deletedBy,
  String? editedBy,
  DateTime? updatedAt,
  String? conversationId,
  int? parentMessageId,
  int? replyCount,
  this.allowSenderInteraction = false,
  int? unreadRepliesCount,
}) : super(
        id: id ?? 0,
        muid: muid ?? '',
        sender: sender,
        receiver: receiver,
        receiverUid: receiverUid,
        type: type,
        receiverType: receiverType,
        category: CometChatMessageCategory.interactive,
        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 ?? 0,
        replyCount: replyCount ?? 0,
      );