comparison LazyBear/Views/Company/Networking/ChartResponse.swift @ 414:b93172662988

Implement networking KeyStats
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Wed, 09 Jun 2021 10:57:25 +0200
parents f843c6382529
children 4effac4733b0
comparison
equal deleted inserted replaced
413:2984d8946342 414:b93172662988
9 9
10 struct ChartResponse: Codable { 10 struct ChartResponse: Codable {
11 var historicalPrices: [HistoricalPricesModel]? 11 var historicalPrices: [HistoricalPricesModel]?
12 var quote: [String: QuoteModel]? 12 var quote: [String: QuoteModel]?
13 var latestNews: [LatestNewsModel]? 13 var latestNews: [LatestNewsModel]?
14 var keyStats: KeyStatsModel?
14 15
15 private enum CodingKeys : String, CodingKey { 16 private enum CodingKeys : String, CodingKey {
16 case historicalPrices = "historical_prices" 17 case historicalPrices = "historical_prices"
17 case quote 18 case quote
18 case latestNews = "latest_news" 19 case latestNews = "latest_news"
20 case keyStats = "key_stats"
19 } 21 }
20 } 22 }
23