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-06-16 18:39:17 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2d60b55b2bd60c02fa44c2545540c31178b220db
2d60b55b
1 parent
cc8c1e68
add saveCustomerState
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
2d60b55
...
...
@@ -10,6 +10,7 @@ import SwiftUI
public
struct
GlobalVariables
{
static
var
campaigns
:
Array
<
swiftApi
.
CampaignItemModel
>
=
[]
static
var
customerState
:
swiftApi
.
CustomerStateModel
?
}
public
class
swiftApi
{
...
...
@@ -1366,8 +1367,12 @@ public class swiftApi {
}
public
func
loadCustomerState
(
_
customer
:
CustomerStateModel
)
->
Void
{
public
func
loadCustomerState
()
->
CustomerStateModel
?
{
return
GlobalVariables
.
customerState
}
public
func
saveCustomerState
(
_
customer
:
CustomerStateModel
)
->
Void
{
GlobalVariables
.
customerState
=
customer
}
...
...
Please
register
or
login
to post a comment