Manos Chorianopoulos

add WarplyDealsAnalysisEventModel

......@@ -110,6 +110,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
pacingService._isEnabled = true
SwiftEventBus.post("pacing_service", sender: pacingService)
// analysis_pressed event
let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel()
dealsAnalysis._isPressed = true
SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis)
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController
vc.coupon = coupons[indexPath.row]
......
......@@ -1424,5 +1424,23 @@ public class swiftApi {
public func setCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void {
GlobalVariables.campaigns = campaigns
}
public class WarplyDealsAnalysisEventModel {
private var isPressed: Bool
public init() {
self.isPressed = false
}
public var _isPressed: Bool {
get { // getter
return self.isPressed
}
set(newValue) { //setter
self.isPressed = newValue
}
}
}
}
......