InteractiveMessage constructor
InteractiveMessage({
- required Map<
String, dynamic> interactiveData, - List<
Interaction> ? interactions, - InteractionGoal? interactionGoal,
- List<
String> ? 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,
- bool allowSenderInteraction = false,
- 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,
);