TimerInfo.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. using MediaBrowser.Model.LiveTv;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Controller.LiveTv
  5. {
  6. public class TimerInfo
  7. {
  8. public TimerInfo()
  9. {
  10. Genres = new List<string>();
  11. }
  12. /// <summary>
  13. /// Id of the recording.
  14. /// </summary>
  15. public string Id { get; set; }
  16. /// <summary>
  17. /// Gets or sets the series timer identifier.
  18. /// </summary>
  19. /// <value>The series timer identifier.</value>
  20. public string SeriesTimerId { get; set; }
  21. /// <summary>
  22. /// ChannelId of the recording.
  23. /// </summary>
  24. public string ChannelId { get; set; }
  25. /// <summary>
  26. /// Gets or sets the program identifier.
  27. /// </summary>
  28. /// <value>The program identifier.</value>
  29. public string ProgramId { get; set; }
  30. /// <summary>
  31. /// Name of the recording.
  32. /// </summary>
  33. public string Name { get; set; }
  34. /// <summary>
  35. /// Description of the recording.
  36. /// </summary>
  37. public string Overview { get; set; }
  38. /// <summary>
  39. /// The start date of the recording, in UTC.
  40. /// </summary>
  41. public DateTime StartDate { get; set; }
  42. /// <summary>
  43. /// The end date of the recording, in UTC.
  44. /// </summary>
  45. public DateTime EndDate { get; set; }
  46. /// <summary>
  47. /// Gets or sets the status.
  48. /// </summary>
  49. /// <value>The status.</value>
  50. public RecordingStatus Status { get; set; }
  51. /// <summary>
  52. /// Gets or sets the pre padding seconds.
  53. /// </summary>
  54. /// <value>The pre padding seconds.</value>
  55. public int PrePaddingSeconds { get; set; }
  56. /// <summary>
  57. /// Gets or sets the post padding seconds.
  58. /// </summary>
  59. /// <value>The post padding seconds.</value>
  60. public int PostPaddingSeconds { get; set; }
  61. /// <summary>
  62. /// Gets or sets a value indicating whether this instance is pre padding required.
  63. /// </summary>
  64. /// <value><c>true</c> if this instance is pre padding required; otherwise, <c>false</c>.</value>
  65. public bool IsPrePaddingRequired { get; set; }
  66. /// <summary>
  67. /// Gets or sets a value indicating whether this instance is post padding required.
  68. /// </summary>
  69. /// <value><c>true</c> if this instance is post padding required; otherwise, <c>false</c>.</value>
  70. public bool IsPostPaddingRequired { get; set; }
  71. /// <summary>
  72. /// Gets or sets the priority.
  73. /// </summary>
  74. /// <value>The priority.</value>
  75. public int Priority { get; set; }
  76. // Program properties
  77. public int? SeasonNumber { get; set; }
  78. /// <summary>
  79. /// Gets or sets the episode number.
  80. /// </summary>
  81. /// <value>The episode number.</value>
  82. public int? EpisodeNumber { get; set; }
  83. public bool IsMovie { get; set; }
  84. public bool IsKids { get; set; }
  85. public bool IsSports { get; set; }
  86. public int? ProductionYear { get; set; }
  87. public string EpisodeTitle { get; set; }
  88. public DateTime? OriginalAirDate { get; set; }
  89. public bool IsProgramSeries { get; set; }
  90. public string HomePageUrl { get; set; }
  91. public float? CommunityRating { get; set; }
  92. public string ShortOverview { get; set; }
  93. public string OfficialRating { get; set; }
  94. public List<string> Genres { get; set; }
  95. }
  96. }