Showing
1 changed file
with
13 additions
and
2 deletions
| ... | @@ -833,9 +833,13 @@ public class swiftApi { | ... | @@ -833,9 +833,13 @@ public class swiftApi { |
| 833 | 833 | ||
| 834 | if let responseDataDictionary = campaignsData as? [String: AnyObject] { | 834 | if let responseDataDictionary = campaignsData as? [String: AnyObject] { |
| 835 | 835 | ||
| 836 | - if (responseDataDictionary["MAPP_CAMPAIGNING-status"] as? Int == 1) { | 836 | + if (responseDataDictionary["status"] as? Int == 1) { |
| 837 | 837 | ||
| 838 | - if let responseDataMapp = responseDataDictionary["MAPP_CAMPAIGNING"] as? [String: Any] { | 838 | + if let responseDataContext = responseDataDictionary["context"] as? [String: Any] { |
| 839 | + | ||
| 840 | + if (responseDataContext["MAPP_CAMPAIGNING-status"] as? Int == 1) { | ||
| 841 | + | ||
| 842 | + if let responseDataMapp = responseDataContext["MAPP_CAMPAIGNING"] as? [String: Any] { | ||
| 839 | if let responseDataCampaigns = responseDataMapp["campaigns"] as? [[String : Any]?] { | 843 | if let responseDataCampaigns = responseDataMapp["campaigns"] as? [[String : Any]?] { |
| 840 | 844 | ||
| 841 | for item in responseDataCampaigns { | 845 | for item in responseDataCampaigns { |
| ... | @@ -858,6 +862,13 @@ public class swiftApi { | ... | @@ -858,6 +862,13 @@ public class swiftApi { |
| 858 | } else { | 862 | } else { |
| 859 | getCampaignsCallback(nil) | 863 | getCampaignsCallback(nil) |
| 860 | } | 864 | } |
| 865 | + } else { | ||
| 866 | + getCampaignsCallback(nil) | ||
| 867 | + } | ||
| 868 | + | ||
| 869 | + } else { | ||
| 870 | + getCampaignsCallback(nil) | ||
| 871 | + } | ||
| 861 | } | 872 | } |
| 862 | 873 | ||
| 863 | func campaignsFailureCallback(_ error: Error?) -> Void { | 874 | func campaignsFailureCallback(_ error: Error?) -> Void { | ... | ... |
-
Please register or login to post a comment