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