From b8c35ecff8ca62557e74ddec5122e10cbb4c1c3f Mon Sep 17 00:00:00 2001 From: tahaalam Date: Mon, 19 Jan 2026 15:30:11 +0300 Subject: [PATCH] live activity handler --- lib/core/common_models/patient_queue.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/core/common_models/patient_queue.dart b/lib/core/common_models/patient_queue.dart index 4ed0c72..ba53cdc 100644 --- a/lib/core/common_models/patient_queue.dart +++ b/lib/core/common_models/patient_queue.dart @@ -4,19 +4,21 @@ class PatientQueue { final String? currentlyServingStatus; final String? currentlyServingTitle; final String? nextTicketStatus; + final int? currentlyServingCallType; final int? callType;// background will be same as of the [Utils.getCardButtonColor] - const PatientQueue({ this.queueNo, this.currentlyServingStatus, this.nextTicketStatus, this.callType, this.currentlyServingTitle, }); + const PatientQueue({ this.queueNo, this.currentlyServingStatus, this.nextTicketStatus, this.callType, this.currentlyServingTitle,this.currentlyServingCallType, }); /// Converts this PatientQueue object to a map. /// This is used for passing data to the native side for Live Activities. Map toMap() { return { - 'nextTicket': queueNo, + 'queueNo': queueNo, 'currentlyServingStatus': currentlyServingStatus, 'nextTicketStatus': nextTicketStatus, - 'nextTicketBackground': callType, + 'callType': callType, 'currentlyServingTitle': currentlyServingTitle, + 'currentlyServingCallType': currentlyServingCallType, }; } } \ No newline at end of file