Manos Chorianopoulos

add WarplyCCMSEnabledModel

...@@ -115,6 +115,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -115,6 +115,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
115 dealsAnalysis._isPressed = true 115 dealsAnalysis._isPressed = true
116 SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis) 116 SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis)
117 117
118 + // ccms_enabled event
119 + let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel()
120 + ccmsEnabled._isActivated = true
121 + SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled)
122 +
118 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 123 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
119 let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController 124 let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController
120 vc.coupon = coupons[indexPath.row] 125 vc.coupon = coupons[indexPath.row]
......
...@@ -1443,4 +1443,23 @@ public class swiftApi { ...@@ -1443,4 +1443,23 @@ public class swiftApi {
1443 } 1443 }
1444 } 1444 }
1445 1445
1446 +
1447 + public class WarplyCCMSEnabledModel {
1448 + private var isActivated: Bool
1449 +
1450 + public init() {
1451 + self.isActivated = false
1452 +
1453 + }
1454 +
1455 + public var _isActivated: Bool {
1456 + get { // getter
1457 + return self.isActivated
1458 + }
1459 + set(newValue) { //setter
1460 + self.isActivated = newValue
1461 + }
1462 + }
1463 + }
1464 +
1446 } 1465 }
......