コード例 #1
0
 public String getPictureUrl(OpenWeatherMap.Root obj)
 {
     return("http://openweathermap.org/img/w/" + obj.weather.ElementAt(0).icon + ".png");
 }
コード例 #2
0
 public String getWeatherCondition(OpenWeatherMap.Root obj)
 {
     return(obj.weather.ElementAt(0).description.ToString());
 }
コード例 #3
0
 public String getTemperature(OpenWeatherMap.Root obj)
 {
     return(Math.Round(obj.main.temp - 273.15).ToString());
 }