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-13 13:44:34 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
801cfae520da09d08c6d4e4c5b58790e6c61ba45
801cfae5
1 parent
adaa7d7a
add set get CouponSetList functions
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 @
801cfae
...
...
@@ -15,6 +15,7 @@ public struct GlobalVariables {
static
var
userTag
:
String
=
""
static
var
dfyCoupons
:
Array
<
swiftApi
.
ActiveDFYCouponModel
>
=
[]
static
var
couponList
:
Array
<
swiftApi
.
CouponItemModel
>
=
[]
static
var
couponSetList
:
Array
<
swiftApi
.
CouponSetItemModel
>
=
[]
static
var
loyaltyBadge
:
swiftApi
.
LoyaltyBadgeModel
=
swiftApi
.
LoyaltyBadgeModel
()
static
var
consumer
:
swiftApi
.
ProfileModel
?
static
var
ccmsCampaigns
:
Array
<
swiftApi
.
LoyaltyContextualOfferModel
>
=
[]
...
...
@@ -246,6 +247,7 @@ public class swiftApi {
}
swiftApi
()
.
setCouponSetList
(
couponSetsArray
)
getCouponSetsCallback
(
couponSetsArray
)
}
...
...
@@ -2492,6 +2494,16 @@ public class swiftApi {
public
func
getCouponList
()
->
Array
<
CouponItemModel
>
{
return
GlobalVariables
.
couponList
}
public
func
setCouponSetList
(
_
couponSets
:
Array
<
CouponSetItemModel
>
)
{
GlobalVariables
.
couponSetList
=
couponSets
}
public
func
getCouponSetList
()
->
Array
<
CouponSetItemModel
>
{
return
GlobalVariables
.
couponSetList
}
public
func
getLoyaltyBadge
()
->
LoyaltyBadgeModel
{
...
...
Please
register
or
login
to post a comment