Manos Chorianopoulos

add set get CouponSetList functions

......@@ -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)
}
......@@ -2494,6 +2496,16 @@ public class swiftApi {
}
public func setCouponSetList(_ couponSets: Array<CouponSetItemModel>) {
GlobalVariables.couponSetList = couponSets
}
public func getCouponSetList() -> Array<CouponSetItemModel> {
return GlobalVariables.couponSetList
}
public func getLoyaltyBadge() -> LoyaltyBadgeModel {
return GlobalVariables.loyaltyBadge
}
......