Manos Chorianopoulos

add open UnifiedCouponsVC action at webview

......@@ -801,6 +801,18 @@ var timer2: DispatchSourceTimer?
dynatraceEvent._parameters = nil
SwiftEventBus.post("dynatrace", sender: dynatraceEvent)
} else if (eventArray[1] == "activeCoupons") {
// event:activeCoupons
swiftApi().getUnifiedCouponsDeals { unifiedCoupons in
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "UnifiedCouponsViewController") as! SwiftWarplyFramework.UnifiedCouponsViewController
self.navigationController?.pushViewController(vc, animated: true)
} failureCallback: { errorCode in
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "UnifiedCouponsViewController") as! SwiftWarplyFramework.UnifiedCouponsViewController
self.navigationController?.pushViewController(vc, animated: true)
}
}
}
......