changes for live activity
parent
e87fdafd62
commit
d232cead63
@ -1,26 +1,22 @@
|
||||
class PatientQueue {
|
||||
|
||||
final String? title; // for title of the notification
|
||||
final String? contentText; // for the content of the notification
|
||||
final String? nextTicket;
|
||||
final String? queueNo;
|
||||
final String? currentlyServingStatus;
|
||||
final String? currentlyServing;
|
||||
final String? currentlyServingTitle;
|
||||
final String? nextTicketStatus;
|
||||
final int? nextTicketBackground;// background will be same as of the [Utils.getCardButtonColor]
|
||||
final int? callType;// background will be same as of the [Utils.getCardButtonColor]
|
||||
|
||||
const PatientQueue({this.title, this.contentText, this.nextTicket, this.currentlyServingStatus, this.currentlyServing, this.nextTicketStatus, this.nextTicketBackground});
|
||||
const PatientQueue({ this.queueNo, this.currentlyServingStatus, this.nextTicketStatus, this.callType, this.currentlyServingTitle, });
|
||||
|
||||
/// Converts this PatientQueue object to a map.
|
||||
/// This is used for passing data to the native side for Live Activities.
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
'title': title,
|
||||
'contentText': contentText,
|
||||
'nextTicket': nextTicket,
|
||||
'nextTicket': queueNo,
|
||||
'currentlyServingStatus': currentlyServingStatus,
|
||||
'currentlyServing': currentlyServing,
|
||||
'nextTicketStatus': nextTicketStatus,
|
||||
'nextTicketBackground': nextTicketBackground,
|
||||
'nextTicketBackground': callType,
|
||||
'currentlyServingTitle': currentlyServingTitle,
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue