123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- using ProtoBuf;
- namespace MediaBrowser.Model.Weather
- {
- /// <summary>
- /// Represents the current weather status
- /// </summary>
- [ProtoContract]
- public class WeatherStatus
- {
- /// <summary>
- /// Gets or sets the temperature fahrenheit.
- /// </summary>
- /// <value>The temperature fahrenheit.</value>
- [ProtoMember(1)]
- public int TemperatureFahrenheit { get; set; }
- /// <summary>
- /// Gets or sets the temperature celsius.
- /// </summary>
- /// <value>The temperature celsius.</value>
- [ProtoMember(2)]
- public int TemperatureCelsius { get; set; }
- /// <summary>
- /// Gets or sets the humidity.
- /// </summary>
- /// <value>The humidity.</value>
- [ProtoMember(3)]
- public int Humidity { get; set; }
- /// <summary>
- /// Gets or sets the condition.
- /// </summary>
- /// <value>The condition.</value>
- [ProtoMember(4)]
- public WeatherConditions Condition { get; set; }
- }
- /// <summary>
- /// Enum WeatherConditions
- /// </summary>
- public enum WeatherConditions
- {
- /// <summary>
- /// The sunny
- /// </summary>
- Sunny,
- /// <summary>
- /// The partly cloudy
- /// </summary>
- PartlyCloudy,
- /// <summary>
- /// The cloudy
- /// </summary>
- Cloudy,
- /// <summary>
- /// The overcast
- /// </summary>
- Overcast,
- /// <summary>
- /// The mist
- /// </summary>
- Mist,
- /// <summary>
- /// The snow
- /// </summary>
- Snow,
- /// <summary>
- /// The rain
- /// </summary>
- Rain,
- /// <summary>
- /// The sleet
- /// </summary>
- Sleet,
- /// <summary>
- /// The fog
- /// </summary>
- Fog,
- /// <summary>
- /// The blizzard
- /// </summary>
- Blizzard,
- /// <summary>
- /// The thunderstorm
- /// </summary>
- Thunderstorm
- }
- }
|