Manos Chorianopoulos

add WarplyCCMSEnabledModel

......@@ -115,6 +115,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
dealsAnalysis._isPressed = true
SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis)
// ccms_enabled event
let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel()
ccmsEnabled._isActivated = true
SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled)
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController
vc.coupon = coupons[indexPath.row]
......
......@@ -1442,5 +1442,24 @@ public class swiftApi {
}
}
}
public class WarplyCCMSEnabledModel {
private var isActivated: Bool
public init() {
self.isActivated = false
}
public var _isActivated: Bool {
get { // getter
return self.isActivated
}
set(newValue) { //setter
self.isActivated = newValue
}
}
}
}
......