|
|
|
@ -24,7 +24,7 @@ abstract class BookAppointmentsRepo {
|
|
|
|
|
|
|
|
|
|
|
|
Future<Either<Failure, GenericApiModel<DoctorsProfileResponseModel>>> getDoctorProfile(int clinicID, int projectID, int doctorId, {Function(dynamic)? onSuccess, Function(String)? onError});
|
|
|
|
Future<Either<Failure, GenericApiModel<DoctorsProfileResponseModel>>> getDoctorProfile(int clinicID, int projectID, int doctorId, {Function(dynamic)? onSuccess, Function(String)? onError});
|
|
|
|
|
|
|
|
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> getDoctorFreeSlots(int clinicID, int projectID, int doctorId, bool isBookingForLiveCare, {Function(dynamic)? onSuccess, Function(String)? onError});
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> getDoctorFreeSlots(int clinicID, int projectID, int doctorId, bool isBookingForLiveCare, {bool continueDentalPlan = false, Function(dynamic)? onSuccess, Function(String)? onError});
|
|
|
|
|
|
|
|
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> cancelAppointment({required PatientAppointmentHistoryResponseModel patientAppointmentHistoryResponseModel});
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> cancelAppointment({required PatientAppointmentHistoryResponseModel patientAppointmentHistoryResponseModel});
|
|
|
|
|
|
|
|
|
|
|
|
@ -229,7 +229,7 @@ class BookAppointmentsRepoImp implements BookAppointmentsRepo {
|
|
|
|
//TODO: Implement the logic for Dental & laser clinics
|
|
|
|
//TODO: Implement the logic for Dental & laser clinics
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> getDoctorFreeSlots(int clinicID, int projectID, int doctorId, bool isBookingForLiveCare,
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> getDoctorFreeSlots(int clinicID, int projectID, int doctorId, bool isBookingForLiveCare,
|
|
|
|
{Function(dynamic)? onSuccess, Function(String)? onError}) async {
|
|
|
|
{bool continueDentalPlan = false, Function(dynamic)? onSuccess, Function(String)? onError}) async {
|
|
|
|
Map<String, dynamic> mapDevice = {
|
|
|
|
Map<String, dynamic> mapDevice = {
|
|
|
|
"DoctorID": doctorId,
|
|
|
|
"DoctorID": doctorId,
|
|
|
|
"IsBookingForLiveCare": isBookingForLiveCare,
|
|
|
|
"IsBookingForLiveCare": isBookingForLiveCare,
|
|
|
|
@ -238,6 +238,7 @@ class BookAppointmentsRepoImp implements BookAppointmentsRepo {
|
|
|
|
"OriginalClinicID": clinicID,
|
|
|
|
"OriginalClinicID": clinicID,
|
|
|
|
"days": 0,
|
|
|
|
"days": 0,
|
|
|
|
"isReschadual": false,
|
|
|
|
"isReschadual": false,
|
|
|
|
|
|
|
|
"ContinueDentalPlan": continueDentalPlan
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|