//
//  DayTimeWeather.swift
//  1Weather
//
//  Created by Demid Merzlyakov on 09.03.2021.
//

import Foundation

public struct DayTimeWeather: Equatable, Hashable {
    public var lastTimeUpdated: Date
    public var dayTime: DayTime
    public var date: Date
    public var timeZone: TimeZone
    public var weekDay: WeekDay
    public var type: WeatherType = .unknown
    public var isDay: Bool
    
    public var temp: Temperature?
    
    public init(dayTime: DayTime, hourly: HourlyWeather) {
        self.lastTimeUpdated = hourly.lastTimeUpdated
        self.dayTime = dayTime
        self.date = hourly.date
        self.timeZone = hourly.timeZone
        self.weekDay = hourly.weekDay
        self.type = hourly.type
        self.isDay = hourly.isDay
        self.temp = hourly.temp
    }
}
