view Simoleon/Models/CurrencyQuoteModel.swift @ 156:84137052813d

Refactor code
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sat, 28 Aug 2021 11:15:25 +0100
parents 8afba86ab8dd
children 0c589138a6f3
line wrap: on
line source

//
//  CurrencyQuoteModel.swift
//  Simoleon
//
//  Created by Dennis Concepción Martín on 15/07/2021.
//

import Foundation

struct CurrencyQuoteModel: Codable, Hashable {
    var symbol: String?
    var price: Double?
    var bid: Double?
    var ask: Double?
    var timeStamp: Int?
    
    private enum CodingKeys: String, CodingKey {
        case symbol = "s"
        case price = "p"
        case bid = "b"
        case ask = "a"
        case timeStamp = "t"
    }
}