merge-update-with-lab-changes
haroon amjad 1 year ago
parent 98389e3f68
commit 9d444ccca3

@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '13.0'
platform :ios, '14.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

@ -4,7 +4,7 @@ import GoogleMaps
var userNotificationCenterDelegate:UNUserNotificationCenterDelegate? = nil
@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
let locationManager = CLLocationManager()
var flutterViewController:MainFlutterVC!

@ -472,7 +472,7 @@ class _CallScreenState extends State<CallScreen> {
],
),
);
if (errorType == Errors.SessionJoinFailed || errorType == Errors.SessionDisconncting) {
if (errorType == Errors.SessionJoinFailed) {
Timer(
const Duration(milliseconds: 1000),
() => Navigator.pop(context),

@ -604,7 +604,7 @@ class _clinic_listState extends State<ClinicList> {
LiveCareService service = new LiveCareService();
int languageID = projectViewModel.isArabic ? 1 : 2;
GifLoaderDialogUtils.showMyDialog(context);
service.addNewCallForPatientER(selectedClinicID, clientRequestID, languageID, widget.isPharmacyLiveCare, context).then((res) {
service.addNewCallForPatientER(selectedClinicID, clientRequestID, selectedCallType, languageID, widget.isPharmacyLiveCare, context).then((res) {
GifLoaderDialogUtils.hideDialog(context);
AppToast.showSuccessToast(message: "New Call has been added successfully");
widget.getLiveCareHistory();

@ -209,7 +209,7 @@ class LiveCareService extends BaseService {
return Future.value(localRes);
}
Future<Map> addNewCallForPatientER(int serviceID, String clientRequestID, int languageID, bool isPharma, BuildContext context) async {
Future<Map> addNewCallForPatientER(int serviceID, String clientRequestID, int callTypeID, int languageID, bool isPharma, BuildContext context) async {
Map<String, dynamic> request;
String? deviceToken;
@ -240,7 +240,8 @@ class LiveCareService extends BaseService {
"PatientID": authUser.patientID != null ? authUser.patientID : 0,
"Gender": authUser.gender != null ? authUser.gender : 0,
"LanguageID": languageID,
"IsVoip": Platform.isIOS ? true : false
"IsVoip": Platform.isIOS ? true : false,
"CallTypeID": callTypeID
};
dynamic localRes;

@ -54,7 +54,7 @@ class PayfortService extends BaseService {
"Pat_Token": result.tokenName,
"IsRefund": false,
"RemmeberMe": false,
"Reconciliation_Reference": result.reconciliationReference,
// "Reconciliation_Reference": result.reconciliationReference,
"LanguageID": 1,
"PatientID": patientID
};
@ -161,7 +161,7 @@ class PayfortService extends BaseService {
);
if (sdkTokenResponse != null && sdkTokenResponse.sdkToken == null) {
onFailed!(sdkTokenResponse.responseMessage ?? '');
onFailed!((sdkTokenResponse.responseMessage ?? '') as PayFortFailureResult);
return;
}
@ -189,7 +189,7 @@ class PayfortService extends BaseService {
),
);
} catch (e) {
onFailed!(e.toString());
onFailed!(e.toString() as PayFortFailureResult);
}
}
}

Loading…
Cancel
Save