Manos Chorianopoulos

add WarplyPacingCardServiceEnabledModel

......@@ -105,6 +105,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
pacingEvent._isVisible = true
SwiftEventBus.post("pacing_visible", sender: pacingEvent)
// pacing_service event
let pacingService = swiftApi.WarplyPacingCardServiceEnabledModel()
pacingService._isEnabled = true
SwiftEventBus.post("pacing_service", sender: pacingService)
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController
vc.coupon = coupons[indexPath.row]
......
......@@ -1220,4 +1220,23 @@ public class swiftApi {
}
}
public class WarplyPacingCardServiceEnabledModel {
private var isEnabled: Bool
public init() {
self.isEnabled = false
}
public var _isEnabled: Bool {
get { // getter
return self.isEnabled
}
set(newValue) { //setter
self.isEnabled = newValue
}
}
}
}
......