|
|
|
|
@ -67,10 +67,12 @@ class BaseAppClient {
|
|
|
|
|
await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (body['ProjectID'] != null &&
|
|
|
|
|
(body['ProjectID'] == 2 || body['ProjectID'] == 3)) {
|
|
|
|
|
body['PatientOutSA'] = true;
|
|
|
|
|
}
|
|
|
|
|
int projectID = await sharedPref.getInt(PROJECT_ID);
|
|
|
|
|
if(projectID ==2 || projectID == 3)
|
|
|
|
|
body['PatientOutSA'] = true;
|
|
|
|
|
else
|
|
|
|
|
body['PatientOutSA'] = false;
|
|
|
|
|
|
|
|
|
|
body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2;
|
|
|
|
|
print("URL : $url");
|
|
|
|
|
print("Body : ${json.encode(body)}");
|
|
|
|
|
@ -193,10 +195,11 @@ class BaseAppClient {
|
|
|
|
|
body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it
|
|
|
|
|
body['SessionID'] = SESSION_ID; //getSe
|
|
|
|
|
|
|
|
|
|
if (body['ProjectID'] != null &&
|
|
|
|
|
(body['ProjectID'] == 2 || body['ProjectID'] == 3)) {
|
|
|
|
|
int projectID = await sharedPref.getInt(PROJECT_ID);
|
|
|
|
|
if(projectID ==2 || projectID == 3)
|
|
|
|
|
body['PatientOutSA'] = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
body['PatientOutSA'] = false;
|
|
|
|
|
|
|
|
|
|
print("URL : $url");
|
|
|
|
|
print("Body : ${json.encode(body)}");
|
|
|
|
|
|