Showing
2 changed files
with
24 additions
and
0 deletions
| ... | @@ -105,6 +105,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -105,6 +105,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ |
| 105 | pacingEvent._isVisible = true | 105 | pacingEvent._isVisible = true |
| 106 | SwiftEventBus.post("pacing_visible", sender: pacingEvent) | 106 | SwiftEventBus.post("pacing_visible", sender: pacingEvent) |
| 107 | 107 | ||
| 108 | + // pacing_service event | ||
| 109 | + let pacingService = swiftApi.WarplyPacingCardServiceEnabledModel() | ||
| 110 | + pacingService._isEnabled = true | ||
| 111 | + SwiftEventBus.post("pacing_service", sender: pacingService) | ||
| 112 | + | ||
| 108 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 113 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
| 109 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController | 114 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController |
| 110 | vc.coupon = coupons[indexPath.row] | 115 | vc.coupon = coupons[indexPath.row] | ... | ... |
| ... | @@ -1219,5 +1219,24 @@ public class swiftApi { | ... | @@ -1219,5 +1219,24 @@ public class swiftApi { |
| 1219 | } | 1219 | } |
| 1220 | } | 1220 | } |
| 1221 | } | 1221 | } |
| 1222 | + | ||
| 1223 | + | ||
| 1224 | + public class WarplyPacingCardServiceEnabledModel { | ||
| 1225 | + private var isEnabled: Bool | ||
| 1226 | + | ||
| 1227 | + public init() { | ||
| 1228 | + self.isEnabled = false | ||
| 1229 | + | ||
| 1230 | + } | ||
| 1231 | + | ||
| 1232 | + public var _isEnabled: Bool { | ||
| 1233 | + get { // getter | ||
| 1234 | + return self.isEnabled | ||
| 1235 | + } | ||
| 1236 | + set(newValue) { //setter | ||
| 1237 | + self.isEnabled = newValue | ||
| 1238 | + } | ||
| 1239 | + } | ||
| 1240 | + } | ||
| 1222 | 1241 | ||
| 1223 | } | 1242 | } | ... | ... |
-
Please register or login to post a comment