class WeatherManager {
    
    var delegate : WeatherManagerDelegate?
    
    func fetchWeather(cityName: String){
        
        NetworkService.request(router: .getCityWeather(cityName: cityName)) { (result: WeatherData) in
            let id = result.weather[0].id
            let temp = result.main.temp
            let name = result.name
            
            let weather = WeatherModel(conditionId: id, cityName: name, temperature: temp)
            self.delegate?.didUpdateWeather(self, weather: weather)
        }
        