Showing
1 changed file
with
6 additions
and
1 deletions
... | @@ -10,6 +10,7 @@ import SwiftUI | ... | @@ -10,6 +10,7 @@ import SwiftUI |
10 | 10 | ||
11 | public struct GlobalVariables { | 11 | public struct GlobalVariables { |
12 | static var campaigns: Array<swiftApi.CampaignItemModel> = [] | 12 | static var campaigns: Array<swiftApi.CampaignItemModel> = [] |
13 | + static var customerState: swiftApi.CustomerStateModel? | ||
13 | } | 14 | } |
14 | 15 | ||
15 | public class swiftApi { | 16 | public class swiftApi { |
... | @@ -1366,8 +1367,12 @@ public class swiftApi { | ... | @@ -1366,8 +1367,12 @@ public class swiftApi { |
1366 | } | 1367 | } |
1367 | 1368 | ||
1368 | 1369 | ||
1369 | - public func loadCustomerState(_ customer: CustomerStateModel) -> Void { | 1370 | + public func loadCustomerState() -> CustomerStateModel? { |
1371 | + return GlobalVariables.customerState | ||
1372 | + } | ||
1370 | 1373 | ||
1374 | + public func saveCustomerState(_ customer: CustomerStateModel) -> Void { | ||
1375 | + GlobalVariables.customerState = customer | ||
1371 | } | 1376 | } |
1372 | 1377 | ||
1373 | 1378 | ... | ... |
-
Please register or login to post a comment