Mercurial > public > simoleon
diff Simoleon/Models/CurrencyConversionModel.swift @ 185:2fc95efcb1ee
connect backend
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 22 Dec 2021 16:12:23 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Simoleon/Models/CurrencyConversionModel.swift Wed Dec 22 16:12:23 2021 +0100 @@ -0,0 +1,18 @@ +// +// CurrencyConversionModel.swift +// Simoleon +// +// Created by Dennis Concepción Martín on 21/12/21. +// + +import Foundation + +struct CurrencyConversionResponse: Codable { + var message: [CurrencyConversionResult] +} + +struct CurrencyConversionResult: Codable { + var rate: Double + var timestamp: Int + var amount: Double +}