Manos Chorianopoulos

fix handleContextualCampaigns

......@@ -4506,6 +4506,16 @@ public class swiftApi {
public func handleContextualCampaigns(_ ccms: LoyaltyContextualOfferModel, _ controller: UIViewController) -> Void {
// if (((ccms._loyaltyCampaignId == "") || (ccms._loyaltyCampaignId == "NA")) && ((ccms._zone == "COSMOTE_APP_GIFTS4U") || (ccms._zone == "COSMOTE_APP_MORE4U"))) {
if ((ccms._loyaltyCampaignId == "") || (ccms._loyaltyCampaignId == "NA")) {
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "ContextualViewController") as! SwiftWarplyFramework.ContextualViewController
vc.ccms = ccms
controller.navigationController?.pushViewController(vc, animated: true)
} else {
let allCampaigns = swiftApi().getAllCampaignList()
for loyaltyCampaign in allCampaigns {
......@@ -4533,6 +4543,7 @@ public class swiftApi {
}
}
}
}
// _ center: Array<Double>
......