2
0

WeatherInfo.cs 841 B

123456789101112131415161718192021222324252627282930313233
  1. using ProtoBuf;
  2. namespace MediaBrowser.Model.Weather
  3. {
  4. /// <summary>
  5. /// Class WeatherInfo
  6. /// </summary>
  7. [ProtoContract]
  8. public class WeatherInfo
  9. {
  10. /// <summary>
  11. /// Gets or sets the current weather.
  12. /// </summary>
  13. /// <value>The current weather.</value>
  14. [ProtoMember(1)]
  15. public WeatherStatus CurrentWeather { get; set; }
  16. /// <summary>
  17. /// Gets or sets the forecasts.
  18. /// </summary>
  19. /// <value>The forecasts.</value>
  20. [ProtoMember(2)]
  21. public WeatherForecast[] Forecasts { get; set; }
  22. /// <summary>
  23. /// Initializes a new instance of the <see cref="WeatherInfo"/> class.
  24. /// </summary>
  25. public WeatherInfo()
  26. {
  27. Forecasts = new WeatherForecast[] {};
  28. }
  29. }
  30. }