/// <summary> /// Get the weather info, from a file that we have on the physical device. /// </summary> /// <param name="city">name of the city where we search the info, also is the filename.</param> /// <param name="folder">folder where we have the files with the info</param> /// <returns>An object from ActualWeather class, whith the actual weather and the forecast of 5 days</returns> public static async Task <ActualWeather> GetStoredWeather(string city, string folder) { dynamic results = await DataService.ReadWeatherFromFile(city, folder); if (results != null) { try { ActualWeather actuWeather = results; return(actuWeather); } catch { return(null); } } else { return(null); } }