Showing
1 changed file
with
12 additions
and
0 deletions
... | @@ -15,6 +15,7 @@ public struct GlobalVariables { | ... | @@ -15,6 +15,7 @@ public struct GlobalVariables { |
15 | static var userTag: String = "" | 15 | static var userTag: String = "" |
16 | static var dfyCoupons: Array<swiftApi.ActiveDFYCouponModel> = [] | 16 | static var dfyCoupons: Array<swiftApi.ActiveDFYCouponModel> = [] |
17 | static var couponList: Array<swiftApi.CouponItemModel> = [] | 17 | static var couponList: Array<swiftApi.CouponItemModel> = [] |
18 | + static var couponSetList: Array<swiftApi.CouponSetItemModel> = [] | ||
18 | static var loyaltyBadge: swiftApi.LoyaltyBadgeModel = swiftApi.LoyaltyBadgeModel() | 19 | static var loyaltyBadge: swiftApi.LoyaltyBadgeModel = swiftApi.LoyaltyBadgeModel() |
19 | static var consumer: swiftApi.ProfileModel? | 20 | static var consumer: swiftApi.ProfileModel? |
20 | static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = [] | 21 | static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = [] |
... | @@ -246,6 +247,7 @@ public class swiftApi { | ... | @@ -246,6 +247,7 @@ public class swiftApi { |
246 | 247 | ||
247 | } | 248 | } |
248 | 249 | ||
250 | + swiftApi().setCouponSetList(couponSetsArray) | ||
249 | getCouponSetsCallback(couponSetsArray) | 251 | getCouponSetsCallback(couponSetsArray) |
250 | } | 252 | } |
251 | 253 | ||
... | @@ -2492,6 +2494,16 @@ public class swiftApi { | ... | @@ -2492,6 +2494,16 @@ public class swiftApi { |
2492 | public func getCouponList() -> Array<CouponItemModel> { | 2494 | public func getCouponList() -> Array<CouponItemModel> { |
2493 | return GlobalVariables.couponList | 2495 | return GlobalVariables.couponList |
2494 | } | 2496 | } |
2497 | + | ||
2498 | + | ||
2499 | + public func setCouponSetList(_ couponSets: Array<CouponSetItemModel>) { | ||
2500 | + GlobalVariables.couponSetList = couponSets | ||
2501 | + } | ||
2502 | + | ||
2503 | + | ||
2504 | + public func getCouponSetList() -> Array<CouponSetItemModel> { | ||
2505 | + return GlobalVariables.couponSetList | ||
2506 | + } | ||
2495 | 2507 | ||
2496 | 2508 | ||
2497 | public func getLoyaltyBadge() -> LoyaltyBadgeModel { | 2509 | public func getLoyaltyBadge() -> LoyaltyBadgeModel { | ... | ... |
-
Please register or login to post a comment