Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2023-12-19 13:37:21 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
05a0c0f7b29098fd0b9a7b6fc787aac426c50ce6
05a0c0f7
1 parent
13dcd65d
add language setter getter
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
05a0c0f
...
...
@@ -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
}
...
...
@@ -4035,6 +4043,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"
)
})
...
...
Please
register
or
login
to post a comment