Manos Chorianopoulos

fix getCampaignsPersonalizedAsync request

......@@ -833,9 +833,13 @@ public class swiftApi {
if let responseDataDictionary = campaignsData as? [String: AnyObject] {
if (responseDataDictionary["MAPP_CAMPAIGNING-status"] as? Int == 1) {
if (responseDataDictionary["status"] as? Int == 1) {
if let responseDataMapp = responseDataDictionary["MAPP_CAMPAIGNING"] as? [String: Any] {
if let responseDataContext = responseDataDictionary["context"] as? [String: Any] {
if (responseDataContext["MAPP_CAMPAIGNING-status"] as? Int == 1) {
if let responseDataMapp = responseDataContext["MAPP_CAMPAIGNING"] as? [String: Any] {
if let responseDataCampaigns = responseDataMapp["campaigns"] as? [[String : Any]?] {
for item in responseDataCampaigns {
......@@ -858,6 +862,13 @@ public class swiftApi {
} else {
getCampaignsCallback(nil)
}
} else {
getCampaignsCallback(nil)
}
} else {
getCampaignsCallback(nil)
}
}
func campaignsFailureCallback(_ error: Error?) -> Void {
......