Manos Chorianopoulos

add setConsumer, getConsumer functions

......@@ -15,6 +15,7 @@ public struct GlobalVariables {
static var dfyCoupons: Array<swiftApi.ActiveDFYCouponModel> = []
static var couponList: Array<swiftApi.CouponItemModel> = []
static var loyaltyBadge: swiftApi.LoyaltyBadgeModel = swiftApi.LoyaltyBadgeModel()
static var consumer: swiftApi.ProfileModel?
}
public class swiftApi {
......@@ -1791,4 +1792,14 @@ public class swiftApi {
}
}
public func setConsumer(_ profile: ProfileModel) {
GlobalVariables.consumer = profile
}
public func getConsumer() -> ProfileModel? {
return GlobalVariables.consumer
}
}
......