|
|
|
|
@ -33,7 +33,7 @@ abstract class ImmediateLiveCareRepo {
|
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> addInsuranceUpdateRequestForLiveCare(String name, String mobileNumber, String fileNumber,
|
|
|
|
|
{Function(dynamic)? onSuccess, Function(String)? onError});
|
|
|
|
|
|
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> rescheduleLiveCareCallRequest(int callID, int serviceID, String consultationTime, bool isRescheduledForOneHourLater,
|
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> rescheduleLiveCareCallRequest(int callID, int serviceID, int selectedRescheduleType, bool isRescheduledForOneHourLater,
|
|
|
|
|
{Function(dynamic)? onSuccess, Function(String)? onError});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -301,13 +301,13 @@ class ImmediateLiveCareRepoImp implements ImmediateLiveCareRepo {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<Either<Failure, GenericApiModel>> rescheduleLiveCareCallRequest(int callID, int serviceID, String consultationTime, bool isRescheduledForOneHourLater,
|
|
|
|
|
Future<Either<Failure, GenericApiModel>> rescheduleLiveCareCallRequest(int callID, int serviceID, int selectedRescheduleType, bool isRescheduledForOneHourLater,
|
|
|
|
|
{Function(dynamic p1)? onSuccess, Function(String p1)? onError}) async {
|
|
|
|
|
Map<String, dynamic> mapDevice = {
|
|
|
|
|
"VCID": callID,
|
|
|
|
|
"UserID": getIt.get<AppState>().getAuthenticatedUser()!.patientId,
|
|
|
|
|
"ServiceID": serviceID,
|
|
|
|
|
"consultationTime": consultationTime,
|
|
|
|
|
"ArrangeCallDuration": selectedRescheduleType,
|
|
|
|
|
"Notes": isRescheduledForOneHourLater ? "Rescheduled by user for 1 hour later" : "Rescheduled by user for 30 mins later",
|
|
|
|
|
"ProjectID": getIt.get<AppState>().getAuthenticatedUser()!.outSa! == 0
|
|
|
|
|
? ApiConsts.appEnvironmentType == AppEnvironmentTypeEnum.uat
|
|
|
|
|
|