Ooui-tws-port/Samples/WeatherApp/Weather.cs

31 lines
978 B
C#
Raw Normal View History

2018-09-02 14:29:53 +00:00
using System.Collections.Generic;
namespace WeatherApp
2017-12-12 20:43:38 +00:00
{
public class Weather
{
public string Title { get; set; }
public string Temperature { get; set; }
public string Wind { get; set; }
public string Humidity { get; set; }
public string Visibility { get; set; }
public string Sunrise { get; set; }
public string Sunset { get; set; }
2018-09-02 14:29:53 +00:00
public List<string> UnitOfMeasures { get; set; }
2017-12-12 20:43:38 +00:00
public Weather()
{
//Because labels bind to these values, set them to an empty string to
//ensure that the label appears on all platforms by default.
this.Title = " ";
this.Temperature = " ";
this.Wind = " ";
this.Humidity = " ";
this.Visibility = " ";
this.Sunrise = " ";
this.Sunset = " ";
2018-09-02 14:29:53 +00:00
this.UnitOfMeasures = new List<string>{"kelvin", "metric", "imperial"};
2017-12-12 20:43:38 +00:00
}
}
2018-09-02 14:29:53 +00:00
}