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-28 13:11:57 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5ca8b6a72ee267b3f41bbd2f3d79626a0f4fd279
5ca8b6a7
1 parent
8c2f153b
add setConsumer, getConsumer functions
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
5ca8b6a
...
...
@@ -15,6 +15,7 @@ public struct GlobalVariables {
static
var
dfyCoupons
:
Array
<
swiftApi
.
ActiveDFYCouponModel
>
=
[]
static
var
couponList
:
Array
<
swiftApi
.
CouponItemModel
>
=
[]
static
var
loyaltyBadge
:
swiftApi
.
LoyaltyBadgeModel
=
swiftApi
.
LoyaltyBadgeModel
()
static
var
consumer
:
swiftApi
.
ProfileModel
?
}
public
class
swiftApi
{
...
...
@@ -1791,4 +1792,14 @@ public class swiftApi {
}
}
public
func
setConsumer
(
_
profile
:
ProfileModel
)
{
GlobalVariables
.
consumer
=
profile
}
public
func
getConsumer
()
->
ProfileModel
?
{
return
GlobalVariables
.
consumer
}
}
...
...
Please
register
or
login
to post a comment