SeriesTimerInfo.cs 3.8 KB

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