Manos Chorianopoulos

add setSeasonalList, getSeasonalList funcs

......@@ -18,6 +18,7 @@ public struct GlobalVariables {
static var consumer: swiftApi.ProfileModel?
static var ccmsCampaigns: Array<swiftApi.LoyaltyContextualOfferModel> = []
static var dealsSum: Float = 0.0
static var seasonalList: Array<swiftApi.LoyaltyGiftsForYouPackage> = []
}
public class swiftApi {
......@@ -2114,4 +2115,15 @@ public class swiftApi {
}
}
public func setSeasonalList(_ seasonalCoupons: Array<LoyaltyGiftsForYouPackage>) {
GlobalVariables.seasonalList = seasonalCoupons
}
public func getSeasonalList() -> Array<LoyaltyGiftsForYouPackage> {
return GlobalVariables.seasonalList
}
}
......