SeriesTimerInfo.cs 3.7 KB

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