comparison Simoleon/Models/CurrencyQuoteModel.swift @ 16:aec2e86e5dbd

Change design and icon
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Thu, 15 Jul 2021 19:03:24 +0100
parents a62e5e4a4f02
children 4a81e39186f1
comparison
equal deleted inserted replaced
15:a02f463aa906 16:aec2e86e5dbd
1 // 1 //
2 // CurrencyQuoteModel.swift 2 // CurrencyQuoteModel.swift
3 // Simoleon 3 // Simoleon
4 // 4 //
5 // Created by Dennis Concepción Martín on 11/07/2021. 5 // Created by Dennis Concepción Martín on 15/07/2021.
6 // 6 //
7 7
8 import SwiftUI 8 import SwiftUI
9 9
10 struct CurrencyQuoteModel: Codable, Hashable { 10 struct CurrencyQuoteModel: Codable, Hashable {
11 var id: UUID?
12 var symbol: String? 11 var symbol: String?
13 var price: Float? 12 var price: Float?
14 var bid: Float? 13 var bid: Float?
15 var ask: Float? 14 var ask: Float?
16 var timeStamp: Int? 15 var timeStamp: Int?
21 case bid = "b" 20 case bid = "b"
22 case ask = "a" 21 case ask = "a"
23 case timeStamp = "t" 22 case timeStamp = "t"
24 } 23 }
25 } 24 }
26 extension CurrencyQuoteModel: Identifiable {}