TimerInfo.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. KeepUntil = KeepUntil.UntilDeleted;
  12. }
  13. /// <summary>
  14. /// Id of the recording.
  15. /// </summary>
  16. public string Id { get; set; }
  17. /// <summary>
  18. /// Gets or sets the series timer identifier.
  19. /// </summary>
  20. /// <value>The series timer identifier.</value>
  21. public string SeriesTimerId { get; set; }
  22. /// <summary>
  23. /// ChannelId of the recording.
  24. /// </summary>
  25. public string ChannelId { get; set; }
  26. /// <summary>
  27. /// Gets or sets the program identifier.
  28. /// </summary>
  29. /// <value>The program identifier.</value>
  30. public string ProgramId { get; set; }
  31. public string ShowId { get; set; }
  32. /// <summary>
  33. /// Name of the recording.
  34. /// </summary>
  35. public string Name { get; set; }
  36. /// <summary>
  37. /// Description of the recording.
  38. /// </summary>
  39. public string Overview { get; set; }
  40. public string SeriesId { get; set; }
  41. /// <summary>
  42. /// The start date of the recording, in UTC.
  43. /// </summary>
  44. public DateTime StartDate { get; set; }
  45. /// <summary>
  46. /// The end date of the recording, in UTC.
  47. /// </summary>
  48. public DateTime EndDate { get; set; }
  49. /// <summary>
  50. /// Gets or sets the status.
  51. /// </summary>
  52. /// <value>The status.</value>
  53. public RecordingStatus Status { get; set; }
  54. /// <summary>
  55. /// Gets or sets the pre padding seconds.
  56. /// </summary>
  57. /// <value>The pre padding seconds.</value>
  58. public int PrePaddingSeconds { get; set; }
  59. /// <summary>
  60. /// Gets or sets the post padding seconds.
  61. /// </summary>
  62. /// <value>The post padding seconds.</value>
  63. public int PostPaddingSeconds { get; set; }
  64. /// <summary>
  65. /// Gets or sets a value indicating whether this instance is pre padding required.
  66. /// </summary>
  67. /// <value><c>true</c> if this instance is pre padding required; otherwise, <c>false</c>.</value>
  68. public bool IsPrePaddingRequired { get; set; }
  69. /// <summary>
  70. /// Gets or sets a value indicating whether this instance is post padding required.
  71. /// </summary>
  72. /// <value><c>true</c> if this instance is post padding required; otherwise, <c>false</c>.</value>
  73. public bool IsPostPaddingRequired { get; set; }
  74. public bool IsManual { get; set; }
  75. /// <summary>
  76. /// Gets or sets the priority.
  77. /// </summary>
  78. /// <value>The priority.</value>
  79. public int Priority { get; set; }
  80. public int RetryCount { get; set; }
  81. // Program properties
  82. public int? SeasonNumber { get; set; }
  83. /// <summary>
  84. /// Gets or sets the episode number.
  85. /// </summary>
  86. /// <value>The episode number.</value>
  87. public int? EpisodeNumber { get; set; }
  88. public bool IsMovie { get; set; }
  89. public bool IsKids { get; set; }
  90. public bool IsSports { get; set; }
  91. public bool IsNews { get; set; }
  92. public int? ProductionYear { get; set; }
  93. public string EpisodeTitle { get; set; }
  94. public DateTime? OriginalAirDate { get; set; }
  95. public bool IsProgramSeries { get; set; }
  96. public bool IsRepeat { get; set; }
  97. public string HomePageUrl { get; set; }
  98. public float? CommunityRating { get; set; }
  99. public string OfficialRating { get; set; }
  100. public List<string> Genres { get; set; }
  101. public string RecordingPath { get; set; }
  102. public KeepUntil KeepUntil { get; set; }
  103. }
  104. }