Ejemplo n.º 1
0
        public static async Task <WeatherReport> FromLocation(string _location, AuthorizationProvider _auth)
        {
            var woeid = await LocationResolver.ResolveLocationToWoeid(_location);

            return(new WeatherReport(woeid, _auth));
        }
Ejemplo n.º 2
0
 public WeatherReport(string _woeid, AuthorizationProvider _auth)
 {
     woeid = _woeid;
     authorizationProvider = _auth;
     webClient             = new WebClient();
 }
Ejemplo n.º 3
0
 public static WeatherReport FromWoeid(string _woeid, AuthorizationProvider _auth)
 {
     return(new WeatherReport(_woeid, _auth));
 }
Ejemplo n.º 4
0
 /// <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);
 }