|
|
|
|
@ -361,41 +361,70 @@ extension AppointmentTypeEnumExtString on AppointmentTypeEnum {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// extension AppointmentStatusToString on AppointmentStatusEnum {
|
|
|
|
|
// String getAppointmentNameFromEnum() {
|
|
|
|
|
// switch (this) {
|
|
|
|
|
// case AppointmentStatusEnum.booked:
|
|
|
|
|
// return "Booked";
|
|
|
|
|
//
|
|
|
|
|
// case AppointmentStatusEnum.confirmed:
|
|
|
|
|
// return "Confirmed";
|
|
|
|
|
//
|
|
|
|
|
// case AppointmentStatusEnum.arrived:
|
|
|
|
|
// return "Arrived";
|
|
|
|
|
//
|
|
|
|
|
// case AppointmentStatusEnum.cancelled:
|
|
|
|
|
// return "Canceled";
|
|
|
|
|
//
|
|
|
|
|
// case AppointmentStatusEnum.rescheduled:
|
|
|
|
|
// return "Rescheduled";
|
|
|
|
|
//
|
|
|
|
|
// case AppointmentStatusEnum.upcoming:
|
|
|
|
|
// return "Upcoming";
|
|
|
|
|
//
|
|
|
|
|
// case AppointmentStatusEnum.workStarted:
|
|
|
|
|
// return "Work Started";
|
|
|
|
|
//
|
|
|
|
|
// case AppointmentStatusEnum.visitCompleted:
|
|
|
|
|
// return "Visit Completed";
|
|
|
|
|
//
|
|
|
|
|
// case AppointmentStatusEnum.past:
|
|
|
|
|
// return "Past";
|
|
|
|
|
//
|
|
|
|
|
// case AppointmentStatusEnum.today:
|
|
|
|
|
// return "Today";
|
|
|
|
|
//
|
|
|
|
|
// default:
|
|
|
|
|
// return "Booked";
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
extension AppointmentStatusToString on AppointmentStatusEnum {
|
|
|
|
|
String getAppointmentNameFromEnum() {
|
|
|
|
|
switch (this) {
|
|
|
|
|
case AppointmentStatusEnum.booked:
|
|
|
|
|
return "Booked";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.booked.tr();
|
|
|
|
|
case AppointmentStatusEnum.confirmed:
|
|
|
|
|
return "Confirmed";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.confirmed.tr();
|
|
|
|
|
case AppointmentStatusEnum.arrived:
|
|
|
|
|
return "Arrived";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.arrived.tr();
|
|
|
|
|
case AppointmentStatusEnum.cancelled:
|
|
|
|
|
return "Canceled";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.canceled.tr();
|
|
|
|
|
case AppointmentStatusEnum.rescheduled:
|
|
|
|
|
return "Rescheduled";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.rescheduled.tr();
|
|
|
|
|
case AppointmentStatusEnum.upcoming:
|
|
|
|
|
return "Upcoming";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.upcoming.tr();
|
|
|
|
|
case AppointmentStatusEnum.workStarted:
|
|
|
|
|
return "Work Started";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.workStarted.tr();
|
|
|
|
|
case AppointmentStatusEnum.visitCompleted:
|
|
|
|
|
return "Visit Completed";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.visitCompleted.tr();
|
|
|
|
|
case AppointmentStatusEnum.past:
|
|
|
|
|
return "Past";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.past.tr();
|
|
|
|
|
case AppointmentStatusEnum.today:
|
|
|
|
|
return "Today";
|
|
|
|
|
|
|
|
|
|
return LocaleKeys.today.tr();
|
|
|
|
|
default:
|
|
|
|
|
return "Booked";
|
|
|
|
|
return LocaleKeys.booked.tr();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|