Manos Chorianopoulos

fix WarplyPacingEventModel

...@@ -59,17 +59,19 @@ import SwiftEventBus ...@@ -59,17 +59,19 @@ import SwiftEventBus
59 let couponEvent = swiftApi.CouponEventModel() 59 let couponEvent = swiftApi.CouponEventModel()
60 SwiftEventBus.post("coupon_retrieved", sender: couponEvent) 60 SwiftEventBus.post("coupon_retrieved", sender: couponEvent)
61 61
62 - } else if (eventArray[2] == "serviceDisabled") { 62 + }
63 - let pacingService = swiftApi.WarplyPacingEventModel() 63 + // else if (eventArray[2] == "serviceDisabled") {
64 - pacingService._isEnabled = false 64 + // let pacingService = swiftApi.WarplyPacingEventModel()
65 - SwiftEventBus.post("pacing", sender: pacingService) 65 + // pacingService._isEnabled = false
66 - 66 + // SwiftEventBus.post("pacing", sender: pacingService)
67 - } else if (eventArray[2] == "serviceEnabled") { 67 +
68 - let pacingService = swiftApi.WarplyPacingEventModel() 68 + // } else if (eventArray[2] == "serviceEnabled") {
69 - pacingService._isEnabled = true 69 + // let pacingService = swiftApi.WarplyPacingEventModel()
70 - SwiftEventBus.post("pacing", sender: pacingService) 70 + // pacingService._isEnabled = true
71 - 71 + // SwiftEventBus.post("pacing", sender: pacingService)
72 - } else if (eventArray[2] == "shortcutEnabled") { 72 +
73 + // }
74 + else if (eventArray[2] == "shortcutEnabled") {
73 let pacingEvent = swiftApi.WarplyPacingEventModel() 75 let pacingEvent = swiftApi.WarplyPacingEventModel()
74 pacingEvent._isVisible = true 76 pacingEvent._isVisible = true
75 SwiftEventBus.post("pacing", sender: pacingEvent) 77 SwiftEventBus.post("pacing", sender: pacingEvent)
......
...@@ -2037,23 +2037,12 @@ public class swiftApi { ...@@ -2037,23 +2037,12 @@ public class swiftApi {
2037 2037
2038 2038
2039 public class WarplyPacingEventModel { 2039 public class WarplyPacingEventModel {
2040 - private var isEnabled: Bool
2041 private var isVisible: Bool 2040 private var isVisible: Bool
2042 2041
2043 public init() { 2042 public init() {
2044 - self.isEnabled = false
2045 self.isVisible = false 2043 self.isVisible = false
2046 } 2044 }
2047 2045
2048 - public var _isEnabled: Bool {
2049 - get { // getter
2050 - return self.isEnabled
2051 - }
2052 - set(newValue) { //setter
2053 - self.isEnabled = newValue
2054 - }
2055 - }
2056 -
2057 public var _isVisible: Bool { 2046 public var _isVisible: Bool {
2058 get { // getter 2047 get { // getter
2059 return self.isVisible 2048 return self.isVisible
......