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 | ||
| ... | @@ -2494,6 +2496,16 @@ public class swiftApi { | ... | @@ -2494,6 +2496,16 @@ public class swiftApi { |
| 2494 | } | 2496 | } |
| 2495 | 2497 | ||
| 2496 | 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 | + } | ||
| 2507 | + | ||
| 2508 | + | ||
| 2497 | public func getLoyaltyBadge() -> LoyaltyBadgeModel { | 2509 | public func getLoyaltyBadge() -> LoyaltyBadgeModel { |
| 2498 | return GlobalVariables.loyaltyBadge | 2510 | return GlobalVariables.loyaltyBadge |
| 2499 | } | 2511 | } | ... | ... |
-
Please register or login to post a comment