Ejemplo n.º 1
0
        public WeatherDataProvider(IWeatherHttpClient httpClient, IWeatherStorage weatherStorage,
                                   IWeatherDataUpdater dataUpdater)
        {
            _weatherHttpClient = httpClient;
            _weatherStorage    = weatherStorage;
            _dataUpdater       = dataUpdater;

            _dataUpdater.StartTimer();
        }
Ejemplo n.º 2
0
 public WeatherDataUpdater(IWeatherSettings settings, IWeatherStorage weatherStorage, IWeatherHttpClient httpClient)
 {
     this._settings  = settings;
     _weatherStorage = weatherStorage;
     _httpClient     = httpClient;
 }