Mercurial > public > lazybear
diff LazyBear/Views/Profile/Networking/ProfileResponse.swift @ 375:f3cb5bdea8e5
Update Codable requests in HomeView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Wed, 21 Apr 2021 16:19:50 +0200 |
parents | d402bfa367c2 |
children | d01859776fe6 |
line wrap: on
line diff
--- a/LazyBear/Views/Profile/Networking/ProfileResponse.swift Sat Apr 17 00:01:59 2021 +0200 +++ b/LazyBear/Views/Profile/Networking/ProfileResponse.swift Wed Apr 21 16:19:50 2021 +0200 @@ -7,21 +7,21 @@ import SwiftUI -struct ProfileResponse: Codable { - var intradayPrices: [String: NestedIntradayPricesModel]? // String is each company symbol - var quotes: [String: NestedQuoteModel]? // String is each company symbol - - private enum CodingKeys : String, CodingKey { - case intradayPrices = "intraday_prices" - case quotes - } -} - - -struct NestedQuoteModel: Codable { - var nestedQuoteModel: QuoteModel - - private enum CodingKeys : String, CodingKey { - case nestedQuoteModel = "quote" - } -} +//struct ProfileResponse: Codable { +// var intradayPrices: [String: NestedIntradayPricesModel]? // String is each company symbol +// var quotes: [String: NestedQuoteModel]? // String is each company symbol +// +// private enum CodingKeys : String, CodingKey { +// case intradayPrices = "intraday_prices" +// case quotes +// } +//} +// +// +//struct NestedQuoteModel: Codable { +// var nestedQuoteModel: QuoteModel +// +// private enum CodingKeys : String, CodingKey { +// case nestedQuoteModel = "quote" +// } +//}