WeatherStatus.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. /// <summary>
  11. /// Gets or sets the temperature fahrenheit.
  12. /// </summary>
  13. /// <value>The temperature fahrenheit.</value>
  14. [ProtoMember(1)]
  15. public int TemperatureFahrenheit { get; set; }
  16. /// <summary>
  17. /// Gets or sets the temperature celsius.
  18. /// </summary>
  19. /// <value>The temperature celsius.</value>
  20. [ProtoMember(2)]
  21. public int TemperatureCelsius { get; set; }
  22. /// <summary>
  23. /// Gets or sets the humidity.
  24. /// </summary>
  25. /// <value>The humidity.</value>
  26. [ProtoMember(3)]
  27. public int Humidity { get; set; }
  28. /// <summary>
  29. /// Gets or sets the condition.
  30. /// </summary>
  31. /// <value>The condition.</value>
  32. [ProtoMember(4)]
  33. public WeatherConditions Condition { get; set; }
  34. }
  35. /// <summary>
  36. /// Enum WeatherConditions
  37. /// </summary>
  38. public enum WeatherConditions
  39. {
  40. /// <summary>
  41. /// The sunny
  42. /// </summary>
  43. Sunny,
  44. /// <summary>
  45. /// The partly cloudy
  46. /// </summary>
  47. PartlyCloudy,
  48. /// <summary>
  49. /// The cloudy
  50. /// </summary>
  51. Cloudy,
  52. /// <summary>
  53. /// The overcast
  54. /// </summary>
  55. Overcast,
  56. /// <summary>
  57. /// The mist
  58. /// </summary>
  59. Mist,
  60. /// <summary>
  61. /// The snow
  62. /// </summary>
  63. Snow,
  64. /// <summary>
  65. /// The rain
  66. /// </summary>
  67. Rain,
  68. /// <summary>
  69. /// The sleet
  70. /// </summary>
  71. Sleet,
  72. /// <summary>
  73. /// The fog
  74. /// </summary>
  75. Fog,
  76. /// <summary>
  77. /// The blizzard
  78. /// </summary>
  79. Blizzard,
  80. /// <summary>
  81. /// The thunderstorm
  82. /// </summary>
  83. Thunderstorm
  84. }
  85. }