Showing
1 changed file
with
12 additions
and
0 deletions
... | @@ -1948,6 +1948,18 @@ public class swiftApi { | ... | @@ -1948,6 +1948,18 @@ public class swiftApi { |
1948 | 1948 | ||
1949 | public func saveCustomerState(_ customer: CustomerStateModel) -> Void { | 1949 | public func saveCustomerState(_ customer: CustomerStateModel) -> Void { |
1950 | GlobalVariables.customerState = customer | 1950 | GlobalVariables.customerState = customer |
1951 | + | ||
1952 | + swiftApi().consumerIntegrationAsync(nonTelco: customer._nonTelco, acceptedConsent: customer._acceptedConsent, msisdnList: customer._msisdnList, guid: customer._guid, consumerIntegrationCallback) | ||
1953 | + | ||
1954 | + func consumerIntegrationCallback (_ response: swiftApi.GenericResponseModel?) -> Void { | ||
1955 | + if (response != nil) { | ||
1956 | + DispatchQueue.main.async { | ||
1957 | + print("CUSTOMER STATE SUCCESS") | ||
1958 | + } | ||
1959 | + } else { | ||
1960 | + print("CUSTOMER STATE ERROR") | ||
1961 | + } | ||
1962 | + } | ||
1951 | } | 1963 | } |
1952 | 1964 | ||
1953 | 1965 | ... | ... |
-
Please register or login to post a comment