Manos Chorianopoulos

add WarplyDealsAnalysisEventModel

...@@ -110,6 +110,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -110,6 +110,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
110 pacingService._isEnabled = true 110 pacingService._isEnabled = true
111 SwiftEventBus.post("pacing_service", sender: pacingService) 111 SwiftEventBus.post("pacing_service", sender: pacingService)
112 112
113 + // analysis_pressed event
114 + let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel()
115 + dealsAnalysis._isPressed = true
116 + SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis)
117 +
113 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 118 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
114 let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController 119 let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController
115 vc.coupon = coupons[indexPath.row] 120 vc.coupon = coupons[indexPath.row]
......
...@@ -1425,4 +1425,22 @@ public class swiftApi { ...@@ -1425,4 +1425,22 @@ public class swiftApi {
1425 GlobalVariables.campaigns = campaigns 1425 GlobalVariables.campaigns = campaigns
1426 } 1426 }
1427 1427
1428 +
1429 + public class WarplyDealsAnalysisEventModel {
1430 + private var isPressed: Bool
1431 +
1432 + public init() {
1433 + self.isPressed = false
1434 + }
1435 +
1436 + public var _isPressed: Bool {
1437 + get { // getter
1438 + return self.isPressed
1439 + }
1440 + set(newValue) { //setter
1441 + self.isPressed = newValue
1442 + }
1443 + }
1444 + }
1445 +
1428 } 1446 }
......