SeriesTimerInfo.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. /// <summary>
  26. /// Description of the recording.
  27. /// </summary>
  28. public string Overview { get; set; }
  29. /// <summary>
  30. /// The start date of the recording, in UTC.
  31. /// </summary>
  32. public DateTime StartDate { get; set; }
  33. /// <summary>
  34. /// The end date of the recording, in UTC.
  35. /// </summary>
  36. public DateTime EndDate { get; set; }
  37. /// <summary>
  38. /// Gets or sets a value indicating whether [record any time].
  39. /// </summary>
  40. /// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value>
  41. public bool RecordAnyTime { get; set; }
  42. /// <summary>
  43. /// Gets or sets a value indicating whether [record any channel].
  44. /// </summary>
  45. /// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
  46. public bool RecordAnyChannel { get; set; }
  47. public int KeepUpTo { get; set; }
  48. public KeepUntil KeepUntil { get; set; }
  49. public bool SkipEpisodesInLibrary { get; set; }
  50. /// <summary>
  51. /// Gets or sets a value indicating whether [record new only].
  52. /// </summary>
  53. /// <value><c>true</c> if [record new only]; otherwise, <c>false</c>.</value>
  54. public bool RecordNewOnly { get; set; }
  55. /// <summary>
  56. /// Gets or sets the days.
  57. /// </summary>
  58. /// <value>The days.</value>
  59. public List<DayOfWeek> Days { get; set; }
  60. /// <summary>
  61. /// Gets or sets the priority.
  62. /// </summary>
  63. /// <value>The priority.</value>
  64. public int Priority { get; set; }
  65. /// <summary>
  66. /// Gets or sets the pre padding seconds.
  67. /// </summary>
  68. /// <value>The pre padding seconds.</value>
  69. public int PrePaddingSeconds { get; set; }
  70. /// <summary>
  71. /// Gets or sets the post padding seconds.
  72. /// </summary>
  73. /// <value>The post padding seconds.</value>
  74. public int PostPaddingSeconds { get; set; }
  75. /// <summary>
  76. /// Gets or sets a value indicating whether this instance is pre padding required.
  77. /// </summary>
  78. /// <value><c>true</c> if this instance is pre padding required; otherwise, <c>false</c>.</value>
  79. public bool IsPrePaddingRequired { get; set; }
  80. /// <summary>
  81. /// Gets or sets a value indicating whether this instance is post padding required.
  82. /// </summary>
  83. /// <value><c>true</c> if this instance is post padding required; otherwise, <c>false</c>.</value>
  84. public bool IsPostPaddingRequired { get; set; }
  85. /// <summary>
  86. /// Gets or sets the series identifier.
  87. /// </summary>
  88. /// <value>The series identifier.</value>
  89. public string SeriesId { get; set; }
  90. public SeriesTimerInfo()
  91. {
  92. Days = new List<DayOfWeek>();
  93. SkipEpisodesInLibrary = true;
  94. KeepUntil = KeepUntil.UntilDeleted;
  95. }
  96. }
  97. }