Exemple #1
0
 public WeatherSummaryViewModel UpdateWeather(WeatherSummary weatherSummary)
 {
     OpenWeatherIcon = OpenWeatherConfiguration.GetIconURL(weatherSummary.OpenWeatherIcon);
     Temperature     = GetShortTemperature(weatherSummary.Temperature);
     Time            = ToTimeAtLocation(weatherSummary);
     return(this);
 }
Exemple #2
0
 public WeatherSummaryViewModel(WeatherSummary weatherSummary, int ordering)
 {
     Name            = weatherSummary.Location;
     Temperature     = GetShortTemperature(weatherSummary.Temperature);
     OpenWeatherIcon = OpenWeatherConfiguration.GetIconURL(weatherSummary.OpenWeatherIcon);
     Id       = weatherSummary.Id;
     Ordering = ordering;
     Time     = ToTimeAtLocation(weatherSummary);
 }