Mercurial > public > lazybear
comparison LazyBear/Views/Company/Networking/Company.swift @ 415:34f9e408b861
Minor UI Updates and tests
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Wed, 09 Jun 2021 12:49:17 +0200 |
parents | b93172662988 |
children |
comparison
equal
deleted
inserted
replaced
414:b93172662988 | 415:34f9e408b861 |
---|---|
20 if view == "chart" { | 20 if view == "chart" { |
21 bazooka.request(url: url, model: ChartResponse.self) { response in | 21 bazooka.request(url: url, model: ChartResponse.self) { response in |
22 switch requestType { | 22 switch requestType { |
23 case .initial: | 23 case .initial: |
24 self.chartData = response | 24 self.chartData = response |
25 print(response) | |
26 case .refresh: | 25 case .refresh: |
27 self.chartData.historicalPrices = response.historicalPrices | 26 self.chartData.historicalPrices = response.historicalPrices |
28 case .streaming: | 27 case .streaming: |
29 self.chartData.quote = response.quote | 28 self.chartData.quote = response.quote |
30 } | 29 } |