Showing
1 changed file
with
151 additions
and
0 deletions
... | @@ -2170,4 +2170,155 @@ public class swiftApi { | ... | @@ -2170,4 +2170,155 @@ public class swiftApi { |
2170 | } | 2170 | } |
2171 | 2171 | ||
2172 | 2172 | ||
2173 | + public class PacingDetails { | ||
2174 | + private var steps: PacingInner | ||
2175 | + private var meters: PacingDetailsInner | ||
2176 | + | ||
2177 | + | ||
2178 | + public init() { | ||
2179 | + self.steps = PacingInner() | ||
2180 | + self.meters = PacingDetailsInner() | ||
2181 | + } | ||
2182 | + | ||
2183 | + public var _steps: PacingInner { | ||
2184 | + get { // getter | ||
2185 | + return self.steps | ||
2186 | + } | ||
2187 | + set(newValue) { //setter | ||
2188 | + self.steps = newValue | ||
2189 | + } | ||
2190 | + } | ||
2191 | + | ||
2192 | + public var _meters: PacingDetailsInner { | ||
2193 | + get { // getter | ||
2194 | + return self.meters | ||
2195 | + } | ||
2196 | + set(newValue) { //setter | ||
2197 | + self.meters = newValue | ||
2198 | + } | ||
2199 | + } | ||
2200 | + } | ||
2201 | + | ||
2202 | + | ||
2203 | + public class PacingInner { | ||
2204 | + private var total: PacingDetailsInner | ||
2205 | + private var month: PacingDetailsInner | ||
2206 | + private var week: PacingDetailsInner | ||
2207 | + private var day: PacingDetailsInner | ||
2208 | + | ||
2209 | + public init() { | ||
2210 | + self.total = PacingDetailsInner() | ||
2211 | + self.month = PacingDetailsInner() | ||
2212 | + self.week = PacingDetailsInner() | ||
2213 | + self.day = PacingDetailsInner() | ||
2214 | + } | ||
2215 | + | ||
2216 | + public var _total: PacingDetailsInner { | ||
2217 | + get { // getter | ||
2218 | + return self.total | ||
2219 | + } | ||
2220 | + set(newValue) { //setter | ||
2221 | + self.total = newValue | ||
2222 | + } | ||
2223 | + } | ||
2224 | + | ||
2225 | + public var _month: PacingDetailsInner { | ||
2226 | + get { // getter | ||
2227 | + return self.month | ||
2228 | + } | ||
2229 | + set(newValue) { //setter | ||
2230 | + self.month = newValue | ||
2231 | + } | ||
2232 | + } | ||
2233 | + | ||
2234 | + public var _week: PacingDetailsInner { | ||
2235 | + get { // getter | ||
2236 | + return self.week | ||
2237 | + } | ||
2238 | + set(newValue) { //setter | ||
2239 | + self.week = newValue | ||
2240 | + } | ||
2241 | + } | ||
2242 | + | ||
2243 | + public var _day: PacingDetailsInner { | ||
2244 | + get { // getter | ||
2245 | + return self.day | ||
2246 | + } | ||
2247 | + set(newValue) { //setter | ||
2248 | + self.day = newValue | ||
2249 | + } | ||
2250 | + } | ||
2251 | + } | ||
2252 | + | ||
2253 | + | ||
2254 | + public class PacingDetailsInner { | ||
2255 | + private var goal: Float | ||
2256 | + private var value: Float | ||
2257 | + private var per_day: Array<PacingDetailsDay> | ||
2258 | + | ||
2259 | + public init() { | ||
2260 | + self.goal = 0.0 | ||
2261 | + self.value = 0.0 | ||
2262 | + self.per_day = [] | ||
2263 | + | ||
2264 | + } | ||
2265 | + | ||
2266 | + public var _goal: Float { | ||
2267 | + get { // getter | ||
2268 | + return self.goal | ||
2269 | + } | ||
2270 | + set(newValue) { //setter | ||
2271 | + self.goal = newValue | ||
2272 | + } | ||
2273 | + } | ||
2274 | + | ||
2275 | + public var _value: Float { | ||
2276 | + get { // getter | ||
2277 | + return self.value | ||
2278 | + } | ||
2279 | + set(newValue) { //setter | ||
2280 | + self.value = newValue | ||
2281 | + } | ||
2282 | + } | ||
2283 | + | ||
2284 | + public var _per_day: Array<PacingDetailsDay> { | ||
2285 | + get { // getter | ||
2286 | + return self.per_day | ||
2287 | + } | ||
2288 | + set(newValue) { //setter | ||
2289 | + self.per_day = newValue | ||
2290 | + } | ||
2291 | + } | ||
2292 | + } | ||
2293 | + | ||
2294 | + | ||
2295 | + public class PacingDetailsDay { | ||
2296 | + private var day: String | ||
2297 | + private var value: Double | ||
2298 | + | ||
2299 | + public init() { | ||
2300 | + self.day = "" | ||
2301 | + self.value = 0.0 | ||
2302 | + | ||
2303 | + } | ||
2304 | + | ||
2305 | + public var _day: String { | ||
2306 | + get { // getter | ||
2307 | + return self.day | ||
2308 | + } | ||
2309 | + set(newValue) { //setter | ||
2310 | + self.day = newValue | ||
2311 | + } | ||
2312 | + } | ||
2313 | + | ||
2314 | + public var _value: Double { | ||
2315 | + get { // getter | ||
2316 | + return self.value | ||
2317 | + } | ||
2318 | + set(newValue) { //setter | ||
2319 | + self.value = newValue | ||
2320 | + } | ||
2321 | + } | ||
2322 | + } | ||
2323 | + | ||
2173 | } | 2324 | } | ... | ... |
-
Please register or login to post a comment