Mercurial > public > lazybear
comparison LazyBear/Views/Profile/Networking/ProfileResponse.swift @ 374:d402bfa367c2
Implementing ProfileView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 17 Apr 2021 00:01:59 +0200 |
parents | |
children | f3cb5bdea8e5 |
comparison
equal
deleted
inserted
replaced
373:efd1e529f167 | 374:d402bfa367c2 |
---|---|
1 // | |
2 // ProfileResponse.swift | |
3 // LazyBear | |
4 // | |
5 // Created by Dennis Concepción Martín on 16/4/21. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 struct ProfileResponse: Codable { | |
11 var intradayPrices: [String: NestedIntradayPricesModel]? // String is each company symbol | |
12 var quotes: [String: NestedQuoteModel]? // String is each company symbol | |
13 | |
14 private enum CodingKeys : String, CodingKey { | |
15 case intradayPrices = "intraday_prices" | |
16 case quotes | |
17 } | |
18 } | |
19 | |
20 | |
21 struct NestedQuoteModel: Codable { | |
22 var nestedQuoteModel: QuoteModel | |
23 | |
24 private enum CodingKeys : String, CodingKey { | |
25 case nestedQuoteModel = "quote" | |
26 } | |
27 } |