Showing
2 changed files
with
11 additions
and
20 deletions
| ... | @@ -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 | + // SwiftEventBus.post("pacing", sender: pacingService) | ||
| 66 | 67 | ||
| 67 | - } else if (eventArray[2] == "serviceEnabled") { | 68 | + // } else if (eventArray[2] == "serviceEnabled") { |
| 68 | - let pacingService = swiftApi.WarplyPacingEventModel() | 69 | + // let pacingService = swiftApi.WarplyPacingEventModel() |
| 69 | - pacingService._isEnabled = true | 70 | + // pacingService._isEnabled = true |
| 70 | - SwiftEventBus.post("pacing", sender: pacingService) | 71 | + // SwiftEventBus.post("pacing", sender: pacingService) |
| 71 | 72 | ||
| 72 | - } else if (eventArray[2] == "shortcutEnabled") { | 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 | ... | ... |
-
Please register or login to post a comment