Showing
1 changed file
with
11 additions
and
0 deletions
| ... | @@ -15,6 +15,7 @@ public struct GlobalVariables { | ... | @@ -15,6 +15,7 @@ public struct GlobalVariables { |
| 15 | static var dfyCoupons: Array<swiftApi.ActiveDFYCouponModel> = [] | 15 | static var dfyCoupons: Array<swiftApi.ActiveDFYCouponModel> = [] |
| 16 | static var couponList: Array<swiftApi.CouponItemModel> = [] | 16 | static var couponList: Array<swiftApi.CouponItemModel> = [] |
| 17 | static var loyaltyBadge: swiftApi.LoyaltyBadgeModel = swiftApi.LoyaltyBadgeModel() | 17 | static var loyaltyBadge: swiftApi.LoyaltyBadgeModel = swiftApi.LoyaltyBadgeModel() |
| 18 | + static var consumer: swiftApi.ProfileModel? | ||
| 18 | } | 19 | } |
| 19 | 20 | ||
| 20 | public class swiftApi { | 21 | public class swiftApi { |
| ... | @@ -1791,4 +1792,14 @@ public class swiftApi { | ... | @@ -1791,4 +1792,14 @@ public class swiftApi { |
| 1791 | } | 1792 | } |
| 1792 | } | 1793 | } |
| 1793 | 1794 | ||
| 1795 | + | ||
| 1796 | + public func setConsumer(_ profile: ProfileModel) { | ||
| 1797 | + GlobalVariables.consumer = profile | ||
| 1798 | + } | ||
| 1799 | + | ||
| 1800 | + | ||
| 1801 | + public func getConsumer() -> ProfileModel? { | ||
| 1802 | + return GlobalVariables.consumer | ||
| 1803 | + } | ||
| 1804 | + | ||
| 1794 | } | 1805 | } | ... | ... |
-
Please register or login to post a comment