Pharmacy intervention null error fix, Update to stores VersionID 9.7

update_flutter_3.16.0
haroon amjad 6 months ago
parent ce7f633a85
commit f365181888

@ -25,11 +25,11 @@ class BaseAppClient {
//TODO change the post fun to nun static when you change all service //TODO change the post fun to nun static when you change all service
post(String endPoint, post(String endPoint,
{Map<String, dynamic>? body, {Map<String, dynamic>? body,
required Function(dynamic response, int statusCode) onSuccess, required Function(dynamic response, int statusCode) onSuccess,
required Function(String error, int statusCode) onFailure, required Function(String error, int statusCode) onFailure,
bool isAllowAny = false, bool isAllowAny = false,
bool isLiveCare = false, bool isLiveCare = false,
bool isFallLanguage = false}) async { bool isFallLanguage = false}) async {
String url; String url;
if (isLiveCare) if (isLiveCare)
url = BASE_URL_LIVE_CARE + endPoint; url = BASE_URL_LIVE_CARE + endPoint;
@ -46,9 +46,7 @@ class BaseAppClient {
if (body == null || body['DoctorID'] == null) { if (body == null || body['DoctorID'] == null) {
body!['DoctorID'] = doctorProfile.doctorID.toString(); body!['DoctorID'] = doctorProfile.doctorID.toString();
} }
if (body['DoctorID'] == "") if (body['DoctorID'] == "") body['DoctorID'] = doctorProfile.doctorID; // changed from null; because create update episode not working
body['DoctorID'] = doctorProfile
.doctorID; // changed from null; because create update episode not working
if (body['EditedBy'] == null) body['EditedBy'] = doctorProfile.doctorID.toString(); if (body['EditedBy'] == null) body['EditedBy'] = doctorProfile.doctorID.toString();
if (body['ProjectID'] == null) { if (body['ProjectID'] == null) {
body['ProjectID'] = doctorProfile.projectID.toString(); body['ProjectID'] = doctorProfile.projectID.toString();
@ -64,8 +62,8 @@ class BaseAppClient {
body['SetupID'] = body.containsKey('SetupID') body['SetupID'] = body.containsKey('SetupID')
? body['SetupID'] != null ? body['SetupID'] != null
? body['SetupID'] ? body['SetupID']
: await sharedPref.getString(DOCTOR_SETUP_ID) : await sharedPref.getString(DOCTOR_SETUP_ID)
: await sharedPref.getString(DOCTOR_SETUP_ID); : await sharedPref.getString(DOCTOR_SETUP_ID);
if (body['EditedBy'] == '') { if (body['EditedBy'] == '') {
@ -94,21 +92,16 @@ class BaseAppClient {
body['IsLoginForDoctorApp'] = IS_LOGIN_FOR_DOCTOR_APP.toString(); body['IsLoginForDoctorApp'] = IS_LOGIN_FOR_DOCTOR_APP.toString();
body['PatientOutSA'] = body['PatientOutSA'] ?? '0'; // PATIENT_OUT_SA; body['PatientOutSA'] = body['PatientOutSA'] ?? '0'; // PATIENT_OUT_SA;
if (body['VidaAuthTokenID'] == null) { if (body['VidaAuthTokenID'] == null) {
body['VidaAuthTokenID'] = body['VidaAuthTokenID'] = await sharedPref.getString(VIDA_AUTH_TOKEN_ID);
await sharedPref.getString(VIDA_AUTH_TOKEN_ID);
} }
if (body['VidaRefreshTokenID'] == null) { if (body['VidaRefreshTokenID'] == null) {
body['VidaRefreshTokenID'] = body['VidaRefreshTokenID'] = await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
} }
int? projectID = await sharedPref.getInt(PROJECT_ID); int? projectID = await sharedPref.getInt(PROJECT_ID);
if (projectID == 2 || projectID == 3) if (projectID == 2 || projectID == 3)
body['PatientOutSA'] = true; body['PatientOutSA'] = true;
else if ((body.containsKey('facilityId') && body['facilityId'] == 2 || else if ((body.containsKey('facilityId') && body['facilityId'] == 2 || body['facilityId'] == 3) || body['ProjectID'] == 2 || body['ProjectID'] == 3)
body['facilityId'] == 3) ||
body['ProjectID'] == 2 ||
body['ProjectID'] == 3)
body['PatientOutSA'] = 'true'; body['PatientOutSA'] = 'true';
else else
body['PatientOutSA'] = 'false'; body['PatientOutSA'] = 'false';
@ -135,27 +128,15 @@ class BaseAppClient {
var asd = json.encode(body); var asd = json.encode(body);
var asd2; var asd2;
if (await Utils.checkConnection()) { if (await Utils.checkConnection()) {
final response = await http.post(Uri.parse(url), final response = await http.post(Uri.parse(url), body: json.encode(body), headers: {'Content-Type': 'application/json', 'Accept': 'application/json'});
body: json.encode(body),
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
});
final int statusCode = response.statusCode; final int statusCode = response.statusCode;
if (statusCode < 200 || statusCode >= 400) { if (statusCode < 200 || statusCode >= 400) {
onFailure(Utils.generateContactAdminMsg(), statusCode); onFailure(Utils.generateContactAdminMsg(), statusCode);
if (body['DoctorID'] != null) if (body['DoctorID'] != null) postFailureResponse(doctorId: body['DoctorID'], url: url, request: json.encode(body), response: response.body, exception: "$statusCode");
postFailureResponse(
doctorId: body['DoctorID'],
url: url,
request: json.encode(body),
response: response.body,
exception: "$statusCode");
} else { } else {
var parsed = json.decode(response.body.toString()); var parsed = json.decode(response.body.toString());
if (parsed['ErrorType'] == 4) { if (parsed['ErrorType'] == 4) {
helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'], helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'], parsed['AndroidLink'], parsed['IOSLink']);
parsed['AndroidLink'], parsed['IOSLink']);
} }
if (parsed['IsAuthenticated'] != null && !parsed['IsAuthenticated']) { if (parsed['IsAuthenticated'] != null && !parsed['IsAuthenticated']) {
@ -163,19 +144,11 @@ class BaseAppClient {
if (parsed['ErrorCode'] == '699') { if (parsed['ErrorCode'] == '699') {
onSuccess(parsed, statusCode); onSuccess(parsed, statusCode);
} else { } else {
if (body['DoctorID'] != null) if (body['DoctorID'] != null) postFailureResponse(doctorId: body['DoctorID'], url: url, request: json.encode(body), response: response.body, exception: getError(parsed));
postFailureResponse(
doctorId: body['DoctorID'],
url: url,
request: json.encode(body),
response: response.body,
exception: getError(parsed));
onFailure(getError(parsed), statusCode); onFailure(getError(parsed), statusCode);
} }
} else if (!isAllowAny) { } else if (!isAllowAny) {
await Provider.of<AuthenticationViewModel>(AppGlobal.CONTEX, await Provider.of<AuthenticationViewModel>(AppGlobal.CONTEX, listen: false).logout();
listen: false)
.logout();
//todo nofailure is placed here and but have to handle the response here as well //todo nofailure is placed here and but have to handle the response here as well
Utils.showErrorToast('Your session expired Please login again'); Utils.showErrorToast('Your session expired Please login again');
locator<NavigationService>().pushNamedAndRemoveUntil(ROOT); locator<NavigationService>().pushNamedAndRemoveUntil(ROOT);
@ -185,13 +158,7 @@ class BaseAppClient {
} }
} else if (parsed['MessageStatus'] == 1) { } else if (parsed['MessageStatus'] == 1) {
if (!parsed['IsAuthenticated']) { if (!parsed['IsAuthenticated']) {
if (body['DoctorID'] != null) if (body['DoctorID'] != null) postFailureResponse(doctorId: body['DoctorID'], url: url, request: json.encode(body), response: response.body, exception: getError(parsed));
postFailureResponse(
doctorId: body['DoctorID'],
url: url,
request: json.encode(body),
response: response.body,
exception: getError(parsed));
onFailure(getError(parsed), statusCode); onFailure(getError(parsed), statusCode);
} else } else
onSuccess(parsed, statusCode); onSuccess(parsed, statusCode);
@ -205,18 +172,13 @@ class BaseAppClient {
return; return;
} }
} }
if (body['DoctorID'] != null) { if (body['DoctorID'] != null) {
postFailureResponse( postFailureResponse(doctorId: body['DoctorID'], url: url, request: json.encode(body), response: response.body, exception: getError(parsed));
doctorId: body['DoctorID'],
url: url,
request: json.encode(body),
response: response.body,
exception: getError(parsed));
}
onFailure(getError(parsed), statusCode);
} }
onFailure(getError(parsed), statusCode);
} }
} else { }
} else {
onFailure('Please Check The Internet Connection', -1); onFailure('Please Check The Internet Connection', -1);
} }
} catch (e) { } catch (e) {
@ -225,264 +187,204 @@ class BaseAppClient {
} }
} }
postPatient(String endPoint, postPatient(String endPoint,
{Map<String, dynamic>? body, {Map<String, dynamic>? body,
required Function(dynamic response, int statusCode) onSuccess, required Function(dynamic response, int statusCode) onSuccess,
required Function(String error, int statusCode) onFailure, required Function(String error, int statusCode) onFailure,
PatiantInformtion? patient, PatiantInformtion? patient,
bool isExternal = false}) async { bool isExternal = false}) async {
String url = BASE_URL + endPoint; String url = BASE_URL + endPoint;
try { try {
Map<String, String> headers = { Map<String, String> headers = {'Content-Type': 'application/json', 'Accept': 'application/json'};
'Content-Type': 'application/json',
'Accept': 'application/json'
};
String? token = await sharedPref.getString(TOKEN);
Map<String, dynamic>? profile = await sharedPref.getObj(DOCTOR_PROFILE);
if (profile != null) {
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
if (body!['DoctorID'] == null) {
body['DoctorID'] = doctorProfile.doctorID;
}
}
if (body!['DoctorID'] == 0) {
body['DoctorID'] = null;
}
var languageID =
await sharedPref.getStringWithDefaultValue(APP_Language, 'en');
body['SetupID'] = body!.containsKey('SetupID')
? body['SetupID'] != null
? body['SetupID']
: await sharedPref.getString(DOCTOR_SETUP_ID)
: await sharedPref.getString(DOCTOR_SETUP_ID);
body['VersionID'] = VERSION_ID;
body['Channel'] = CHANNEL;
body['LanguageID'] = languageID == 'ar' ? 1 : 2;
body['IPAdress'] = "10.20.10.20";
body['generalid'] = GENERAL_ID;
body['PatientOutSA'] = body.containsKey('PatientOutSA')
? body['PatientOutSA'] != null
? body['PatientOutSA']
: PATIENT_OUT_SA_PATIENT_REQ
: PATIENT_OUT_SA_PATIENT_REQ;
if (body.containsKey('isDentalAllowedBackend')) {
body['isDentalAllowedBackend'] =
body.containsKey('isDentalAllowedBackend')
? body['isDentalAllowedBackend'] != null
? body['isDentalAllowedBackend']
: IS_DENTAL_ALLOWED_BACKEND
: IS_DENTAL_ALLOWED_BACKEND;
}
body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2; String? token = await sharedPref.getString(TOKEN);
Map<String, dynamic>? profile = await sharedPref.getObj(DOCTOR_PROFILE);
body['PatientType'] = body.containsKey('PatientType')
? body['PatientType'] != null if (profile != null) {
? body['PatientType'] DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
: patient!.patientType != null if (body!['DoctorID'] == null) {
? patient.patientType body['DoctorID'] = doctorProfile.doctorID;
: PATIENT_TYPE }
: PATIENT_TYPE; }
if (body!['DoctorID'] == 0) {
body['PatientTypeID'] = body.containsKey('PatientTypeID') body['DoctorID'] = null;
? body['PatientTypeID'] != null }
? body['PatientTypeID'] var languageID = await sharedPref.getStringWithDefaultValue(APP_Language, 'en');
: patient!.patientType != null body['SetupID'] = body!.containsKey('SetupID')
? patient.patientType ? body['SetupID'] != null
: PATIENT_TYPE_ID ? body['SetupID']
: PATIENT_TYPE_ID; : await sharedPref.getString(DOCTOR_SETUP_ID)
: await sharedPref.getString(DOCTOR_SETUP_ID);
body['TokenID'] =
body.containsKey('TokenID') ? body['TokenID'] ?? token : token; body['VersionID'] = VERSION_ID;
body['PatientID'] = body['PatientID'] != null body['Channel'] = CHANNEL;
? body['PatientID'] body['LanguageID'] = languageID == 'ar' ? 1 : 2;
: patient!.patientId ?? patient.patientMRN;
body['IPAdress'] = "10.20.10.20";
body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it body['generalid'] = GENERAL_ID;
body['SessionID'] = SESSION_ID; //getSe body['PatientOutSA'] = body.containsKey('PatientOutSA')
? body['PatientOutSA'] != null
int? projectID = await sharedPref.getInt(PROJECT_ID); ? body['PatientOutSA']
if (projectID == 2 || projectID == 3) : PATIENT_OUT_SA_PATIENT_REQ
body['PatientOutSA'] = true; : PATIENT_OUT_SA_PATIENT_REQ;
else
body['PatientOutSA'] = false; if (body.containsKey('isDentalAllowedBackend')) {
body['isDentalAllowedBackend'] = body.containsKey('isDentalAllowedBackend')
// if(!body.containsKey('ProjectID')) { ? body['isDentalAllowedBackend'] != null
// if (projectID != null) { ? body['isDentalAllowedBackend']
// body['ProjectID'] = 313; : IS_DENTAL_ALLOWED_BACKEND
// } else { : IS_DENTAL_ALLOWED_BACKEND;
// body['ProjectID'] = 0; }
// }
// } body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2;
// body['DoctorID'] = 24; //3844083 body['PatientType'] = body.containsKey('PatientType')
// body['TokenID'] = "@dm!n"; ? body['PatientType'] != null
? body['PatientType']
print("URL : $url"); : patient!.patientType != null
print("Body : ${json.encode(body)}"); ? patient.patientType
var asd = json.encode(body); : PATIENT_TYPE
var asd2; : PATIENT_TYPE;
if (await Utils.checkConnection()) {
final response = await http.post(Uri.parse(url.trim()), body['PatientTypeID'] = body.containsKey('PatientTypeID')
body: json.encode(body), headers: headers); ? body['PatientTypeID'] != null
final int statusCode = response.statusCode; ? body['PatientTypeID']
print("statusCode :$statusCode"); : patient!.patientType != null
if (statusCode < 200 || statusCode >= 400 || json == null) { ? patient.patientType
onFailure('Error While Fetching data', statusCode); : PATIENT_TYPE_ID
} else { : PATIENT_TYPE_ID;
// var parsed = json.decode(response.body.toString());
var parsed = json.decode(utf8.decode(response.bodyBytes)); body['TokenID'] = body.containsKey('TokenID') ? body['TokenID'] ?? token : token;
if (parsed['Response_Message'] != null) { body['PatientID'] = body['PatientID'] != null ? body['PatientID'] : patient!.patientId ?? patient.patientMRN;
onSuccess(parsed, statusCode);
} else { body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it
if (parsed['ErrorType'] == 4) { body['SessionID'] = SESSION_ID; //getSe
helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'],
parsed['AndroidLink'], parsed['IOSLink']); int? projectID = await sharedPref.getInt(PROJECT_ID);
} if (projectID == 2 || projectID == 3)
if (parsed['IsAuthenticated'] == null) { body['PatientOutSA'] = true;
if (parsed['isSMSSent'] == true) { else
onSuccess(parsed, statusCode); body['PatientOutSA'] = false;
} else if (parsed['MessageStatus'] == 1) {
onSuccess(parsed, statusCode); // if(!body.containsKey('ProjectID')) {
} else if (parsed['Result'] == 'OK') { // if (projectID != null) {
onSuccess(parsed, statusCode); // body['ProjectID'] = 313;
} else { // } else {
if (parsed != null) { // body['ProjectID'] = 0;
onSuccess(parsed, statusCode); // }
} else { // }
if (body['DoctorID'] != null)
postFailureResponse( // body['DoctorID'] = 24; //3844083
doctorId: body['DoctorID'], // body['TokenID'] = "@dm!n";
url: url,
request: json.encode(body), print("URL : $url");
response: response.body, print("Body : ${json.encode(body)}");
exception: getError(parsed)); var asd = json.encode(body);
onFailure(getError(parsed), statusCode); var asd2;
} if (await Utils.checkConnection()) {
} final response = await http.post(Uri.parse(url.trim()), body: json.encode(body), headers: headers);
} else if (parsed['MessageStatus'] == 1 || final int statusCode = response.statusCode;
parsed['SMSLoginRequired'] == true) { print("statusCode :$statusCode");
onSuccess(parsed, statusCode); if (statusCode < 200 || statusCode >= 400 || json == null) {
} else if (parsed['MessageStatus'] == 2 && onFailure('Error While Fetching data', statusCode);
parsed['IsAuthenticated']) { } else {
if (parsed['SameClinicApptList'] != null) { // var parsed = json.decode(response.body.toString());
onSuccess(parsed, statusCode); var parsed = json.decode(utf8.decode(response.bodyBytes));
} else { if (parsed['Response_Message'] != null) {
if (parsed['message'] == null && onSuccess(parsed, statusCode);
parsed['ErrorEndUserMessage'] == null) { } else {
if (parsed['ErrorSearchMsg'] == null) { if (parsed['ErrorType'] == 4) {
if (body['DoctorID'] != null) helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'], parsed['AndroidLink'], parsed['IOSLink']);
postFailureResponse( }
doctorId: body['DoctorID'], if (parsed['IsAuthenticated'] == null) {
url: url, if (parsed['isSMSSent'] == true) {
request: json.encode(body), onSuccess(parsed, statusCode);
response: response.body, } else if (parsed['MessageStatus'] == 1) {
exception: onSuccess(parsed, statusCode);
"Server Error found with no available message"); } else if (parsed['Result'] == 'OK') {
onSuccess(parsed, statusCode);
onFailure("Server Error found with no available message", } else {
statusCode); if (parsed != null) {
} else { onSuccess(parsed, statusCode);
if (body['DoctorID'] != null) } else {
postFailureResponse( if (body['DoctorID'] != null) postFailureResponse(doctorId: body['DoctorID'], url: url, request: json.encode(body), response: response.body, exception: getError(parsed));
doctorId: body['DoctorID'], onFailure(getError(parsed), statusCode);
url: url, }
request: json.encode(body), }
response: response.body, } else if (parsed['MessageStatus'] == 1 || parsed['SMSLoginRequired'] == true) {
exception: parsed['ErrorSearchMsg']); onSuccess(parsed, statusCode);
onFailure(parsed['ErrorSearchMsg'], statusCode); } else if (parsed['MessageStatus'] == 2 && parsed['IsAuthenticated']) {
} if (parsed['SameClinicApptList'] != null) {
} else { onSuccess(parsed, statusCode);
if (body['DoctorID'] != null) } else {
postFailureResponse( if (parsed['message'] == null && parsed['ErrorEndUserMessage'] == null) {
doctorId: body['DoctorID'], if (parsed['ErrorSearchMsg'] == null) {
url: url, if (body['DoctorID'] != null)
request: json.encode(body), postFailureResponse(doctorId: body['DoctorID'], url: url, request: json.encode(body), response: response.body, exception: "Server Error found with no available message");
response: response.body,
exception: parsed['message'] ?? onFailure("Server Error found with no available message", statusCode);
parsed['ErrorEndUserMessage'] ?? } else {
parsed['ErrorMessage']); if (body['DoctorID'] != null) postFailureResponse(doctorId: body['DoctorID'], url: url, request: json.encode(body), response: response.body, exception: parsed['ErrorSearchMsg']);
onFailure( onFailure(parsed['ErrorSearchMsg'], statusCode);
parsed['message'] ?? }
parsed['ErrorEndUserMessage'] ?? } else {
parsed['ErrorMessage'], if (body['DoctorID'] != null)
statusCode); postFailureResponse(
} doctorId: body['DoctorID'],
} url: url,
} else { request: json.encode(body),
if (parsed['SameClinicApptList'] != null) { response: response.body,
onSuccess(parsed, statusCode); exception: parsed['message'] ?? parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage']);
} else { onFailure(parsed['message'] ?? parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'], statusCode);
if (parsed['message'] != null) { }
if (body['DoctorID'] != null) }
postFailureResponse( } else {
doctorId: body['DoctorID'], if (parsed['SameClinicApptList'] != null) {
url: url, onSuccess(parsed, statusCode);
request: json.encode(body), } else {
response: response.body, if (parsed['message'] != null) {
exception: parsed['message']); if (body['DoctorID'] != null) postFailureResponse(doctorId: body['DoctorID'], url: url, request: json.encode(body), response: response.body, exception: parsed['message']);
onFailure(parsed['message'] ?? parsed['message'], statusCode); onFailure(parsed['message'] ?? parsed['message'], statusCode);
} else { } else {
if (body['DoctorID'] != null) if (body['DoctorID'] != null)
postFailureResponse( postFailureResponse(doctorId: body['DoctorID'], url: url, request: json.encode(body), response: response.body, exception: parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage']);
doctorId: body['DoctorID'],
url: url, onFailure(parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'], statusCode);
request: json.encode(body), }
response: response.body, }
exception: parsed['ErrorEndUserMessage'] ?? }
parsed['ErrorMessage']); }
}
onFailure( } else {
parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'], onFailure('Please Check The Internet Connection', -1);
statusCode); }
}
}
}
}
}
} else {
onFailure('Please Check The Internet Connection', -1);
}
} catch (e) { } catch (e) {
print(e); print(e);
onFailure(e.toString(), -1); onFailure(e.toString(), -1);
}
} }
}
String getError(parsed) { String getError(parsed) {
//TODO change this fun //TODO change this fun
String? error = parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage']; String? error = parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'];
if (parsed["ValidationErrors"] != null) { if (parsed["ValidationErrors"] != null) {
error = parsed["ValidationErrors"]["StatusMessage"].toString() + "\n"; error = parsed["ValidationErrors"]["StatusMessage"].toString() + "\n";
if (parsed["ValidationErrors"]["ValidationErrors"] != null && if (parsed["ValidationErrors"]["ValidationErrors"] != null && parsed["ValidationErrors"]["ValidationErrors"].length != 0) {
parsed["ValidationErrors"]["ValidationErrors"].length != 0) { for (var i = 0; i < parsed["ValidationErrors"]["ValidationErrors"].length; i++) {
for (var i = 0; error = error! + parsed["ValidationErrors"]["ValidationErrors"][i]["Messages"][0] + "\n";
i < parsed["ValidationErrors"]["ValidationErrors"].length; }
i++) { }
error = error! +
parsed["ValidationErrors"]["ValidationErrors"][i]["Messages"][0] +
"\n";
}
}
} }
if (error == null || error == "null" || error == "null\n") { if (error == null || error == "null" || error == "null\n") {
return Utils.generateContactAdminMsg(); return Utils.generateContactAdminMsg();
} }
return error; return error;
} }
get( get({required String endPoint, required Function(dynamic response, int statusCode) onSuccess, required Function(String error, int statusCode) onFailure}) async {
{required String endPoint,
required Function(dynamic response, int statusCode) onSuccess,
required Function(String error, int statusCode) onFailure}) async {
String token = await sharedPref.getString(TOKEN); String token = await sharedPref.getString(TOKEN);
String url = DOCTOR_ROTATION + endPoint + '&token=' + token; String url = DOCTOR_ROTATION + endPoint + '&token=' + token;
print(url); print(url);
@ -490,10 +392,10 @@ class BaseAppClient {
final int statusCode = response.statusCode; final int statusCode = response.statusCode;
if (statusCode < 200 || statusCode >= 400) { if (statusCode < 200 || statusCode >= 400) {
onFailure(Utils.generateContactAdminMsg(), statusCode); onFailure(Utils.generateContactAdminMsg(), statusCode);
} else { } else {
var parsed = json.decode(response.body.toString()); var parsed = json.decode(response.body.toString());
onSuccess(parsed, statusCode); onSuccess(parsed, statusCode);
}
} }
} }
}

@ -413,7 +413,7 @@ const TRANSACTION_NO = 0;
const LANGUAGE_ID = 2; const LANGUAGE_ID = 2;
const STAMP = '2020-04-27T12:17:17.721Z'; const STAMP = '2020-04-27T12:17:17.721Z';
const IP_ADDRESS = '9.9.9.9'; const IP_ADDRESS = '9.9.9.9';
const VERSION_ID = 9.6; const VERSION_ID = 9.7;
const CHANNEL = 9; const CHANNEL = 9;
const SESSION_ID = 'BlUSkYymTt'; const SESSION_ID = 'BlUSkYymTt';
const IS_LOGIN_FOR_DOCTOR_APP = true; const IS_LOGIN_FOR_DOCTOR_APP = true;

@ -11,7 +11,7 @@ description: A new Flutter project.
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.4.22+33 version: 1.4.24+1
environment: environment:

Loading…
Cancel
Save