Manos Chorianopoulos

update PacingDetails model

...@@ -2422,11 +2422,13 @@ public class swiftApi { ...@@ -2422,11 +2422,13 @@ public class swiftApi {
2422 public class PacingDetails { 2422 public class PacingDetails {
2423 private var steps: PacingInner 2423 private var steps: PacingInner
2424 private var meters: PacingInner 2424 private var meters: PacingInner
2425 + private var enabled: Bool
2425 2426
2426 2427
2427 public init() { 2428 public init() {
2428 self.steps = PacingInner() 2429 self.steps = PacingInner()
2429 self.meters = PacingInner() 2430 self.meters = PacingInner()
2431 + self.enabled = false
2430 } 2432 }
2431 2433
2432 public init(dictionary: [String: Any]) { 2434 public init(dictionary: [String: Any]) {
...@@ -2435,6 +2437,7 @@ public class swiftApi { ...@@ -2435,6 +2437,7 @@ public class swiftApi {
2435 2437
2436 self.steps = PacingInner(dictionary: pacingDataSteps) 2438 self.steps = PacingInner(dictionary: pacingDataSteps)
2437 self.meters = PacingInner(dictionary: pacingDataMeters) 2439 self.meters = PacingInner(dictionary: pacingDataMeters)
2440 + self.enabled = (dictionary["enabled"] as? Bool ?? false)
2438 } 2441 }
2439 2442
2440 public var _steps: PacingInner { 2443 public var _steps: PacingInner {
...@@ -2454,6 +2457,15 @@ public class swiftApi { ...@@ -2454,6 +2457,15 @@ public class swiftApi {
2454 self.meters = newValue 2457 self.meters = newValue
2455 } 2458 }
2456 } 2459 }
2460 +
2461 + public var _enabled: Bool {
2462 + get { // getter
2463 + return self.enabled
2464 + }
2465 + set(newValue) { //setter
2466 + self.enabled = newValue
2467 + }
2468 + }
2457 } 2469 }
2458 2470
2459 2471
......