|
|
|
|
@ -1668,14 +1668,26 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
patientId: _appState.getSelectDeviceByImeiRespModelElement!.patientId!,
|
|
|
|
|
patientType: _appState.getSelectDeviceByImeiRespModelElement!.patientType,
|
|
|
|
|
patientOutSa: _appState.getSelectDeviceByImeiRespModelElement!.outSa == true ? 1 : 0,
|
|
|
|
|
projectOutSa: _appState.getSelectDeviceByImeiRespModelElement!.outSa,
|
|
|
|
|
loginType: loginType,
|
|
|
|
|
languageId: _appState.getLanguageID(),
|
|
|
|
|
latitude: _appState.userLat,
|
|
|
|
|
longitude: _appState.userLong,
|
|
|
|
|
mobileNo: _appState.getSelectDeviceByImeiRespModelElement!.mobile!,
|
|
|
|
|
patientMobileNumber: int.parse(_appState.getSelectDeviceByImeiRespModelElement!.mobile!),
|
|
|
|
|
nationalId: _appState.getSelectDeviceByImeiRespModelElement!.identificationNo)
|
|
|
|
|
nationalId: _appState.getSelectDeviceByImeiRespModelElement!.identificationNo,
|
|
|
|
|
zipCode: _appState.getSelectDeviceByImeiRespModelElement!.isOther == true
|
|
|
|
|
? "0"
|
|
|
|
|
: _appState.getSelectDeviceByImeiRespModelElement!.outSa == true
|
|
|
|
|
? CountryEnum.unitedArabEmirates.countryCode
|
|
|
|
|
: CountryEnum.saudiArabia.countryCode,
|
|
|
|
|
isRegister: false,
|
|
|
|
|
logInTokenId: "",
|
|
|
|
|
searchType: 2,
|
|
|
|
|
patientIdentificationId: "0",
|
|
|
|
|
otpSendType: loginType)
|
|
|
|
|
.toJson());
|
|
|
|
|
|
|
|
|
|
resultEither.fold((failure) async => await _errorHandlerService.handleError(failure: failure), (apiResponse) async {
|
|
|
|
|
if (apiResponse.messageStatus == 1) {
|
|
|
|
|
dynamic deviceInfo = apiResponse.data['List_MobileLoginInfo'];
|
|
|
|
|
|