public static async Task <WeatherReport> FromLocation(string _location, AuthorizationProvider _auth) { var woeid = await LocationResolver.ResolveLocationToWoeid(_location); return(new WeatherReport(woeid, _auth)); }
public WeatherReport(string _woeid, AuthorizationProvider _auth) { woeid = _woeid; authorizationProvider = _auth; webClient = new WebClient(); }
public static WeatherReport FromWoeid(string _woeid, AuthorizationProvider _auth) { return(new WeatherReport(_woeid, _auth)); }
/// <summary> /// Provides possibility to gather weather information from yahoo.com /// /// It seems like Yahoo removed the OAuth authentication from the weather API again. Key and secret can be omitted. /// </summary> public YahooWeatherProvider(string _consumerKey = "", string _consumerSecret = "") { authorizationProvider = new AuthorizationProvider(_consumerKey, _consumerSecret); }