Ejemplo n.º 1
0
 public static WeatherResultByDayForecast Create(WeatherResultList result) => new WeatherResultByDayForecast
 {
     Date     = DateTimeOffset.FromUnixTimeSeconds(result.Dt).DateTime,
     Icon     = result.Weather.FirstOrDefault()?.Icon,
     Humidity = result.Main.Humidity,
     Temp     = result.Main.Temp,
     Speed    = result.Wind.Speed
 };
Ejemplo n.º 2
0
        public WeatherResultList Add(WeatherResultList item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            weatherlist.Add(item);
            return(item);
        }