Skip to content

Commit

Permalink
Update model access modifiers to Public.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyArzola committed Sep 7, 2020
1 parent ce5245b commit 9ad74db
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
28 changes: 14 additions & 14 deletions Sources/OpenWeatherMap/Models/CurrentWeather.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ import Foundation
*/

public struct CurrentWeather: Codable {
let dateTime: Date
let sunrise: Date
let sunset: Date
let temperature: Float // in Kelvin
let feelsLike: Float // in Kelvin
let pressure: Int16
let humidity: Int16
let dewPoint: Float
let uvi: Float
let clouds: Int16
let visibility: Int
let windSpeed: Float
let windDegrees: Int16
let weatherDescription: [WeatherDescriptions]
public let dateTime: Date
public let sunrise: Date
public let sunset: Date
public let temperature: Float // in Kelvin
public let feelsLike: Float // in Kelvin
public let pressure: Int16
public let humidity: Int16
public let dewPoint: Float
public let uvi: Float
public let clouds: Int16
public let visibility: Int
public let windSpeed: Float
public let windDegrees: Int16
public let weatherDescription: [WeatherDescriptions]

private enum CodingKeys: String, CodingKey {
case dateTime = "dt"
Expand Down
12 changes: 6 additions & 6 deletions Sources/OpenWeatherMap/Models/Forecast.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ Model the following response:
*/

public struct Forecast: Codable {
let latitude: Float
let longitude: Float
let timezone: String
let timezoneOffset: Int16
let currentWeather: CurrentWeather
let dailyForecast: [ForecastWeather]
public let latitude: Float
public let longitude: Float
public let timezone: String
public let timezoneOffset: Int16
public let currentWeather: CurrentWeather
public let dailyForecast: [ForecastWeather]

private enum CodingKeys: String, CodingKey {
case latitude = "lat"
Expand Down
46 changes: 23 additions & 23 deletions Sources/OpenWeatherMap/Models/ForecastWeather.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import Foundation
"morn": 313.38
*/
public struct ForecastTemperature: Codable {
let day: Float // in Kelvin
let minimum: Float // in Kelvin
let maximum: Float // in Kelvin
let night: Float // in Kelvin
let evening: Float // in Kelvin
let morning: Float // in Kelvin
public let day: Float // in Kelvin
public let minimum: Float // in Kelvin
public let maximum: Float // in Kelvin
public let night: Float // in Kelvin
public let evening: Float // in Kelvin
public let morning: Float // in Kelvin

private enum CodingKeys: String, CodingKey {
case day
Expand All @@ -44,10 +44,10 @@ public struct ForecastTemperature: Codable {
"morn": 310.7
*/
public struct ForecastFeelsLikeTemperature: Codable {
let day: Float // in Kelvin
let night: Float // in Kelvin
let evening: Float // in Kelvin
let morning: Float // in Kelvin
public let day: Float // in Kelvin
public let night: Float // in Kelvin
public let evening: Float // in Kelvin
public let morning: Float // in Kelvin

private enum CodingKeys: String, CodingKey {
case day
Expand Down Expand Up @@ -97,19 +97,19 @@ public struct ForecastFeelsLikeTemperature: Codable {
}
*/
public struct ForecastWeather: Codable {
let dateTime: Date
let sunrise: Date
let sunset: Date
let temperatures: ForecastTemperature
let temperatureFeelsLike: ForecastFeelsLikeTemperature
let pressure: Int16
let humidity: Int16
let dewPoint: Float
let uvi: Float
let clouds: Int16
let windSpeed: Float
let windDegree: Int16
let weather: [WeatherDescriptions]
public let dateTime: Date
public let sunrise: Date
public let sunset: Date
public let temperatures: ForecastTemperature
public let temperatureFeelsLike: ForecastFeelsLikeTemperature
public let pressure: Int16
public let humidity: Int16
public let dewPoint: Float
public let uvi: Float
public let clouds: Int16
public let windSpeed: Float
public let windDegree: Int16
public let weather: [WeatherDescriptions]

private enum CodingKeys: String, CodingKey {
case dateTime = "dt"
Expand Down

0 comments on commit 9ad74db

Please sign in to comment.