Manos Chorianopoulos

add setSeasonalList, getSeasonalList funcs

...@@ -18,6 +18,7 @@ public struct GlobalVariables { ...@@ -18,6 +18,7 @@ public struct GlobalVariables {
18 static var consumer: swiftApi.ProfileModel? 18 static var consumer: swiftApi.ProfileModel?
19 static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = [] 19 static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = []
20 static var dealsSum: Float = 0.0 20 static var dealsSum: Float = 0.0
21 + static var seasonalList: Array<swiftApi.LoyaltyGiftsForYouPackage> = []
21 } 22 }
22 23
23 public class swiftApi { 24 public class swiftApi {
...@@ -2114,4 +2115,15 @@ public class swiftApi { ...@@ -2114,4 +2115,15 @@ public class swiftApi {
2114 } 2115 }
2115 } 2116 }
2116 2117
2118 +
2119 + public func setSeasonalList(_ seasonalCoupons: Array<LoyaltyGiftsForYouPackage>) {
2120 + GlobalVariables.seasonalList = seasonalCoupons
2121 + }
2122 +
2123 +
2124 + public func getSeasonalList() -> Array<LoyaltyGiftsForYouPackage> {
2125 + return GlobalVariables.seasonalList
2126 + }
2127 +
2128 +
2117 } 2129 }
......