Manos Chorianopoulos

add saveCustomerState

......@@ -10,6 +10,7 @@ import SwiftUI
public struct GlobalVariables {
static var campaigns: Array<swiftApi.CampaignItemModel> = []
static var customerState: swiftApi.CustomerStateModel?
}
public class swiftApi {
......@@ -1366,8 +1367,12 @@ public class swiftApi {
}
public func loadCustomerState(_ customer: CustomerStateModel) -> Void {
public func loadCustomerState() -> CustomerStateModel? {
return GlobalVariables.customerState
}
public func saveCustomerState(_ customer: CustomerStateModel) -> Void {
GlobalVariables.customerState = customer
}
......