|
|
|
@ -296,7 +296,15 @@ class LoginApiClient {
|
|
|
|
|
|
|
|
|
|
|
|
Future<GenericResponseModel?> checkActivationCode(bool isDeviceNFC, String? mobileNumber, String activationCode, String? pUserName, String loginType) async {
|
|
|
|
Future<GenericResponseModel?> checkActivationCode(bool isDeviceNFC, String? mobileNumber, String activationCode, String? pUserName, String loginType) async {
|
|
|
|
String url = "${ApiConsts.erpRest}CheckActivationCode";
|
|
|
|
String url = "${ApiConsts.erpRest}CheckActivationCode";
|
|
|
|
Map<String, dynamic> postParams = {"IsDeviceNFC": isDeviceNFC, "MobileNumber": mobileNumber, "activationCode": activationCode, "P_USER_NAME": pUserName, "LoginType":loginType};
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
|
|
|
|
"DeviceToken": AppState().getDeviceToken,
|
|
|
|
|
|
|
|
"DeviceType": (Platform.isAndroid ? "android" : "ios"),
|
|
|
|
|
|
|
|
"IsDeviceNFC": isDeviceNFC,
|
|
|
|
|
|
|
|
"MobileNumber": mobileNumber,
|
|
|
|
|
|
|
|
"activationCode": activationCode,
|
|
|
|
|
|
|
|
"P_USER_NAME": pUserName,
|
|
|
|
|
|
|
|
"LoginType": loginType
|
|
|
|
|
|
|
|
};
|
|
|
|
postParams.addAll(AppState().postParamsJson);
|
|
|
|
postParams.addAll(AppState().postParamsJson);
|
|
|
|
return await ApiClient().postJsonForObject((json) {
|
|
|
|
return await ApiClient().postJsonForObject((json) {
|
|
|
|
GenericResponseModel responseData = GenericResponseModel.fromJson(json);
|
|
|
|
GenericResponseModel responseData = GenericResponseModel.fromJson(json);
|
|
|
|
|