WeatherForecast.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using ProtoBuf;
  3. namespace MediaBrowser.Model.Weather
  4. {
  5. /// <summary>
  6. /// Represents a weather forecast for a specific date
  7. /// </summary>
  8. [ProtoContract]
  9. public class WeatherForecast
  10. {
  11. /// <summary>
  12. /// Gets or sets the date.
  13. /// </summary>
  14. /// <value>The date.</value>
  15. [ProtoMember(1)]
  16. public DateTime Date { get; set; }
  17. /// <summary>
  18. /// Gets or sets the high temperature fahrenheit.
  19. /// </summary>
  20. /// <value>The high temperature fahrenheit.</value>
  21. [ProtoMember(2)]
  22. public int HighTemperatureFahrenheit { get; set; }
  23. /// <summary>
  24. /// Gets or sets the low temperature fahrenheit.
  25. /// </summary>
  26. /// <value>The low temperature fahrenheit.</value>
  27. [ProtoMember(3)]
  28. public int LowTemperatureFahrenheit { get; set; }
  29. /// <summary>
  30. /// Gets or sets the high temperature celsius.
  31. /// </summary>
  32. /// <value>The high temperature celsius.</value>
  33. [ProtoMember(4)]
  34. public int HighTemperatureCelsius { get; set; }
  35. /// <summary>
  36. /// Gets or sets the low temperature celsius.
  37. /// </summary>
  38. /// <value>The low temperature celsius.</value>
  39. [ProtoMember(5)]
  40. public int LowTemperatureCelsius { get; set; }
  41. /// <summary>
  42. /// Gets or sets the condition.
  43. /// </summary>
  44. /// <value>The condition.</value>
  45. [ProtoMember(6)]
  46. public WeatherConditions Condition { get; set; }
  47. }
  48. }