Mercurial > public > lazybear
comparison LazyBear/Views/Home/Networking/HomeResponse.swift @ 349:5ccceb527178
Implementing new internal API
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Wed, 14 Apr 2021 23:08:26 +0200 |
parents | 80bfa88c6b0f |
children | f3cb5bdea8e5 |
comparison
equal
deleted
inserted
replaced
348:0abb8d5c12ec | 349:5ccceb527178 |
---|---|
10 struct HomeResponse: Codable { | 10 struct HomeResponse: Codable { |
11 var lists: [String: [QuoteModel]]? // String is the list type; gainers, losers ... | 11 var lists: [String: [QuoteModel]]? // String is the list type; gainers, losers ... |
12 var sectorPerformance: [SectorPerformanceModel]? | 12 var sectorPerformance: [SectorPerformanceModel]? |
13 var tradingDates: [TradingDatesModel]? | 13 var tradingDates: [TradingDatesModel]? |
14 var intradayPrices: [String: NestedIntradayPricesModel]? // String is each company symbol | 14 var intradayPrices: [String: NestedIntradayPricesModel]? // String is each company symbol |
15 var latestCurrencies: [String: CurrencyModel]? | |
15 | 16 |
16 private enum CodingKeys : String, CodingKey { | 17 private enum CodingKeys : String, CodingKey { |
17 case lists | 18 case lists |
18 case sectorPerformance = "sector_performance" | 19 case sectorPerformance = "sector_performance" |
19 case tradingDates = "trading_dates" | 20 case tradingDates = "trading_dates" |
20 case intradayPrices = "intraday_prices" | 21 case intradayPrices = "intraday_prices" |
22 case latestCurrencies = "latest_currencies" | |
21 } | 23 } |
22 } | 24 } |
23 | 25 |
24 | 26 |
25 struct NestedIntradayPricesModel: Codable { | 27 struct NestedIntradayPricesModel: Codable { |