Manos Chorianopoulos

update PacingDetails model

......@@ -2422,11 +2422,13 @@ public class swiftApi {
public class PacingDetails {
private var steps: PacingInner
private var meters: PacingInner
private var enabled: Bool
public init() {
self.steps = PacingInner()
self.meters = PacingInner()
self.enabled = false
}
public init(dictionary: [String: Any]) {
......@@ -2435,6 +2437,7 @@ public class swiftApi {
self.steps = PacingInner(dictionary: pacingDataSteps)
self.meters = PacingInner(dictionary: pacingDataMeters)
self.enabled = (dictionary["enabled"] as? Bool ?? false)
}
public var _steps: PacingInner {
......@@ -2454,6 +2457,15 @@ public class swiftApi {
self.meters = newValue
}
}
public var _enabled: Bool {
get { // getter
return self.enabled
}
set(newValue) { //setter
self.enabled = newValue
}
}
}
......