Initial commit
This commit is contained in:
22
WhiteNights/Models/WeaherModel.swift
Normal file
22
WhiteNights/Models/WeaherModel.swift
Normal file
@ -0,0 +1,22 @@
|
||||
import Foundation
|
||||
|
||||
struct WeatherResponse: Codable {
|
||||
let currentWeather: CurrentWeatherItem?
|
||||
let forecast: [ForecastItem]
|
||||
}
|
||||
|
||||
struct CurrentWeatherItem: Codable {
|
||||
let temperatureCelsius: Double
|
||||
let description: String
|
||||
let humidity: Int
|
||||
let windSpeed: Double
|
||||
}
|
||||
|
||||
struct ForecastItem: Codable {
|
||||
let date: String
|
||||
let description: String
|
||||
let humidity: Int
|
||||
let windSpeed: Double
|
||||
let minTemperatureCelsius: Double
|
||||
let maxTemperatureCelsius: Double
|
||||
}
|
Reference in New Issue
Block a user