public WeatherLogic(IWeatherService weatherService) { _weatherService = weatherService; baseInfoResponse = new RootObject(); weatherStationInfoResponse = new List <TempRootObject>(); percipitationResponse = new PercepRootObject(); }
// A list of the resources required for this TaskFactory to communicate with, and construct the methods for the API communication and BusinessLogic /// <summary> /// The method used to update the weather information in memory /// </summary> /// <returns></returns> public async Task UpdateWeatherInformation() { baseInfoResponse = await _weatherService.GetBaseKeyInfoAboutWeatherLocations(); weatherStationInfoResponse = await _weatherService.GetFullListOfTemperatures(baseInfoResponse); percipitationResponse = await _weatherService.GetLundPercipitation(baseInfoResponse); }