WeatherStatus.cs 781 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using ProtoBuf;
  2. namespace MediaBrowser.Model.Weather
  3. {
  4. /// <summary>
  5. /// Represents the current weather status
  6. /// </summary>
  7. [ProtoContract]
  8. public class WeatherStatus
  9. {
  10. [ProtoMember(1)]
  11. public int TemperatureFahrenheit { get; set; }
  12. [ProtoMember(2)]
  13. public int TemperatureCelsius { get; set; }
  14. [ProtoMember(3)]
  15. public int Humidity { get; set; }
  16. [ProtoMember(4)]
  17. public WeatherConditions Condition { get; set; }
  18. }
  19. public enum WeatherConditions
  20. {
  21. Sunny,
  22. PartlyCloudy,
  23. Cloudy,
  24. Overcast,
  25. Mist,
  26. Snow,
  27. Rain,
  28. Sleet,
  29. Fog,
  30. Blizzard,
  31. Thunderstorm
  32. }
  33. }