Showing
1 changed file
with
11 additions
and
0 deletions
... | @@ -4506,6 +4506,16 @@ public class swiftApi { | ... | @@ -4506,6 +4506,16 @@ public class swiftApi { |
4506 | 4506 | ||
4507 | public func handleContextualCampaigns(_ ccms: LoyaltyContextualOfferModel, _ controller: UIViewController) -> Void { | 4507 | public func handleContextualCampaigns(_ ccms: LoyaltyContextualOfferModel, _ controller: UIViewController) -> Void { |
4508 | 4508 | ||
4509 | + // if (((ccms._loyaltyCampaignId == "") || (ccms._loyaltyCampaignId == "NA")) && ((ccms._zone == "COSMOTE_APP_GIFTS4U") || (ccms._zone == "COSMOTE_APP_MORE4U"))) { | ||
4510 | + | ||
4511 | + if ((ccms._loyaltyCampaignId == "") || (ccms._loyaltyCampaignId == "NA")) { | ||
4512 | + let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | ||
4513 | + let vc = storyboard.instantiateViewController(withIdentifier: "ContextualViewController") as! SwiftWarplyFramework.ContextualViewController | ||
4514 | + vc.ccms = ccms | ||
4515 | + controller.navigationController?.pushViewController(vc, animated: true) | ||
4516 | + | ||
4517 | + } else { | ||
4518 | + | ||
4509 | let allCampaigns = swiftApi().getAllCampaignList() | 4519 | let allCampaigns = swiftApi().getAllCampaignList() |
4510 | 4520 | ||
4511 | for loyaltyCampaign in allCampaigns { | 4521 | for loyaltyCampaign in allCampaigns { |
... | @@ -4533,6 +4543,7 @@ public class swiftApi { | ... | @@ -4533,6 +4543,7 @@ public class swiftApi { |
4533 | } | 4543 | } |
4534 | } | 4544 | } |
4535 | } | 4545 | } |
4546 | + } | ||
4536 | 4547 | ||
4537 | 4548 | ||
4538 | // _ center: Array<Double> | 4549 | // _ center: Array<Double> | ... | ... |
-
Please register or login to post a comment