SeriesTimerInfo.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Collections.Generic;
  5. using MediaBrowser.Model.LiveTv;
  6. namespace MediaBrowser.Controller.LiveTv
  7. {
  8. public class SeriesTimerInfo
  9. {
  10. /// <summary>
  11. /// Id of the recording.
  12. /// </summary>
  13. public string Id { get; set; }
  14. /// <summary>
  15. /// ChannelId of the recording.
  16. /// </summary>
  17. public string ChannelId { get; set; }
  18. /// <summary>
  19. /// Gets or sets the program identifier.
  20. /// </summary>
  21. /// <value>The program identifier.</value>
  22. public string ProgramId { get; set; }
  23. /// <summary>
  24. /// Name of the recording.
  25. /// </summary>
  26. public string Name { get; set; }
  27. public string ServiceName { get; set; }
  28. /// <summary>
  29. /// Description of the recording.
  30. /// </summary>
  31. public string Overview { get; set; }
  32. /// <summary>
  33. /// The start date of the recording, in UTC.
  34. /// </summary>
  35. public DateTime StartDate { get; set; }
  36. /// <summary>
  37. /// The end date of the recording, in UTC.
  38. /// </summary>
  39. public DateTime EndDate { get; set; }
  40. /// <summary>
  41. /// Gets or sets a value indicating whether [record any time].
  42. /// </summary>
  43. /// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value>
  44. public bool RecordAnyTime { get; set; }
  45. /// <summary>
  46. /// Gets or sets a value indicating whether [record any channel].
  47. /// </summary>
  48. /// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
  49. public bool RecordAnyChannel { get; set; }
  50. public int KeepUpTo { get; set; }
  51. public KeepUntil KeepUntil { get; set; }
  52. public bool SkipEpisodesInLibrary { get; set; }
  53. /// <summary>
  54. /// Gets or sets a value indicating whether [record new only].
  55. /// </summary>
  56. /// <value><c>true</c> if [record new only]; otherwise, <c>false</c>.</value>
  57. public bool RecordNewOnly { get; set; }
  58. /// <summary>
  59. /// Gets or sets the days.
  60. /// </summary>
  61. /// <value>The days.</value>
  62. public List<DayOfWeek> Days { get; set; }
  63. /// <summary>
  64. /// Gets or sets the priority.
  65. /// </summary>
  66. /// <value>The priority.</value>
  67. public int Priority { get; set; }
  68. /// <summary>
  69. /// Gets or sets the pre padding seconds.
  70. /// </summary>
  71. /// <value>The pre padding seconds.</value>
  72. public int PrePaddingSeconds { get; set; }
  73. /// <summary>
  74. /// Gets or sets the post padding seconds.
  75. /// </summary>
  76. /// <value>The post padding seconds.</value>
  77. public int PostPaddingSeconds { get; set; }
  78. /// <summary>
  79. /// Gets or sets a value indicating whether this instance is pre padding required.
  80. /// </summary>
  81. /// <value><c>true</c> if this instance is pre padding required; otherwise, <c>false</c>.</value>
  82. public bool IsPrePaddingRequired { get; set; }
  83. /// <summary>
  84. /// Gets or sets a value indicating whether this instance is post padding required.
  85. /// </summary>
  86. /// <value><c>true</c> if this instance is post padding required; otherwise, <c>false</c>.</value>
  87. public bool IsPostPaddingRequired { get; set; }
  88. /// <summary>
  89. /// Gets or sets the series identifier.
  90. /// </summary>
  91. /// <value>The series identifier.</value>
  92. public string SeriesId { get; set; }
  93. public SeriesTimerInfo()
  94. {
  95. Days = new List<DayOfWeek>();
  96. SkipEpisodesInLibrary = true;
  97. KeepUntil = KeepUntil.UntilDeleted;
  98. }
  99. }
  100. }