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
2022-07-06 14:26:02 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
013732818eb131e0dab7fabaca119f1058873c66
01373281
1 parent
1cbb5d43
update saveCustomerState
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
0137328
...
...
@@ -1948,6 +1948,18 @@ public class swiftApi {
public
func
saveCustomerState
(
_
customer
:
CustomerStateModel
)
->
Void
{
GlobalVariables
.
customerState
=
customer
swiftApi
()
.
consumerIntegrationAsync
(
nonTelco
:
customer
.
_nonTelco
,
acceptedConsent
:
customer
.
_acceptedConsent
,
msisdnList
:
customer
.
_msisdnList
,
guid
:
customer
.
_guid
,
consumerIntegrationCallback
)
func
consumerIntegrationCallback
(
_
response
:
swiftApi
.
GenericResponseModel
?)
->
Void
{
if
(
response
!=
nil
)
{
DispatchQueue
.
main
.
async
{
print
(
"CUSTOMER STATE SUCCESS"
)
}
}
else
{
print
(
"CUSTOMER STATE ERROR"
)
}
}
}
...
...
Please
register
or
login
to post a comment