Manos Chorianopoulos

add language setter getter

......@@ -102,6 +102,14 @@ public class swiftApi {
UserDefaults.standard.set(newUserTag, forKey: "merchantIdUD")
}
public func getLanguage() -> String {
return UserDefaults.standard.string(forKey: "languageUD") ?? ""
}
public func setLanguage(_ newLang: String) -> Void {
UserDefaults.standard.set(newLang, forKey: "languageUD")
}
public func getStepsWebview() -> Int {
return GlobalVariables.stepsWebview
}
......@@ -4034,6 +4042,8 @@ public class swiftApi {
public func saveCustomerState(_ customer: CustomerStateModel) -> Void {
GlobalVariables.customerState = customer
swiftApi().setLanguage(customer._language)
swiftApi().consumerIntegrationAsync(nonTelco: customer._nonTelco, acceptedConsent: customer._acceptedConsent, msisdnList: customer._msisdnList, guid: customer._guid, consumerIntegrationCallback, failureCallback: {errorCode in
print("CUSTOMER STATE ERROR")
......