diff --git a/lib/core/service/client/base_app_client.dart b/lib/core/service/client/base_app_client.dart index 8e410819..f12ef3da 100644 --- a/lib/core/service/client/base_app_client.dart +++ b/lib/core/service/client/base_app_client.dart @@ -87,7 +87,7 @@ class BaseAppClient { : IS_DENTAL_ALLOWED_BACKEND; } - body['DeviceTypeID'] = Platform.isAndroid ? 1: 2; + body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2; if (!body.containsKey('IsPublicRequest')) { body['PatientType'] = body.containsKey('PatientType') @@ -117,7 +117,8 @@ class BaseAppClient { 'Accept': 'application/json', 'Authorization': pharmacyToken, 'Mobilenumber': user != null - ? Utils.getPhoneNumberWithoutZero(user['MobileNumber'].toString()) + ? Utils.getPhoneNumberWithoutZero( + user['MobileNumber'].toString()) : "", 'Statictoken': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9', 'Username': user['PatientID'].toString(), @@ -278,8 +279,7 @@ class BaseAppClient { : IS_DENTAL_ALLOWED_BACKEND; } - - body['DeviceTypeID'] = Platform.isAndroid ? 1: 2; + body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2; if (!body.containsKey('IsPublicRequest')) { body['PatientType'] = body.containsKey('PatientType') @@ -507,10 +507,12 @@ class BaseAppClient { } } - simplePost(String fullUrl, - { Map body, - Function(dynamic response, int statusCode) onSuccess, - Function(String error, int statusCode) onFailure,}) async { + simplePost( + String fullUrl, { + Map body, + Function(dynamic response, int statusCode) onSuccess, + Function(String error, int statusCode) onFailure, + }) async { String url = fullUrl; print("URL Query String: $url"); @@ -539,9 +541,8 @@ class BaseAppClient { simpleGet(String fullUrl, {Function(dynamic response, int statusCode) onSuccess, - Function(String error, int statusCode) onFailure, - Map queryParams}) async { - + Function(String error, int statusCode) onFailure, + Map queryParams}) async { String url = fullUrl; print("URL Query String: $url"); @@ -574,12 +575,10 @@ class BaseAppClient { } } - simplePut(String fullUrl, - { Map body, - Function(dynamic response, int statusCode) onSuccess, - Function(String error, int statusCode) onFailure}) async { - + {Map body, + Function(dynamic response, int statusCode) onSuccess, + Function(String error, int statusCode) onFailure}) async { String url = fullUrl; print("URL Query String: $url"); @@ -608,9 +607,8 @@ class BaseAppClient { simpleDelete(String fullUrl, {Function(dynamic response, int statusCode) onSuccess, - Function(String error, int statusCode) onFailure, - Map queryParams}) async { - + Function(String error, int statusCode) onFailure, + Map queryParams}) async { String url = fullUrl; print("URL Query String: $url"); @@ -733,7 +731,7 @@ class BaseAppClient { : IS_DENTAL_ALLOWED_BACKEND; } - body['DeviceTypeID'] = Platform.isAndroid ? 1: 2; + body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2; if (!body.containsKey('IsPublicRequest')) { body['PatientType'] = body.containsKey('PatientType')