|
|
|
@ -79,8 +79,11 @@ class BaseAppClient {
|
|
|
|
|
body['generalid'] = GENERAL_ID;
|
|
|
|
|
// body['isVidaPlus'] = true;
|
|
|
|
|
|
|
|
|
|
body['Latitude'] = await AppSharedPreferences().getDouble(USER_LAT);
|
|
|
|
|
body['Longitude'] = await AppSharedPreferences().getDouble(USER_LONG);
|
|
|
|
|
double lat = await AppSharedPreferences().getDouble(USER_LAT);
|
|
|
|
|
double long = await AppSharedPreferences().getDouble(USER_LONG);
|
|
|
|
|
|
|
|
|
|
body['Latitude'] = lat == null ? 0.0 : lat;
|
|
|
|
|
body['Longitude'] = long == null ? 0.0 : long;
|
|
|
|
|
|
|
|
|
|
if (body.containsKey('isDentalAllowedBackend')) {
|
|
|
|
|
body['isDentalAllowedBackend'] = body.containsKey('isDentalAllowedBackend')
|
|
|
|
@ -90,7 +93,11 @@ class BaseAppClient {
|
|
|
|
|
: IS_DENTAL_ALLOWED_BACKEND;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body['DeviceTypeID'] = Platform.isIOS ? 1 : await Utils.isGoogleServicesAvailable() ? 2 : 3;
|
|
|
|
|
body['DeviceTypeID'] = Platform.isIOS
|
|
|
|
|
? 1
|
|
|
|
|
: await Utils.isGoogleServicesAvailable()
|
|
|
|
|
? 2
|
|
|
|
|
: 3;
|
|
|
|
|
|
|
|
|
|
if (!body.containsKey('IsPublicRequest')) {
|
|
|
|
|
// if (!body.containsKey('PatientType')) {
|
|
|
|
|