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