SeriesTimerInfoDto.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Diagnostics;
  5. using MediaBrowser.Model.Serialization;
  6. namespace MediaBrowser.Model.LiveTv
  7. {
  8. /// <summary>
  9. /// Class SeriesTimerInfoDto.
  10. /// </summary>
  11. [DebuggerDisplay("Name = {Name}")]
  12. public class SeriesTimerInfoDto : BaseTimerInfoDto
  13. {
  14. public SeriesTimerInfoDto()
  15. {
  16. ImageTags = new Dictionary<ImageType, string>();
  17. Days = new DayOfWeek[] { };
  18. Type = "SeriesTimer";
  19. }
  20. /// <summary>
  21. /// Gets or sets a value indicating whether [record any time].
  22. /// </summary>
  23. /// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value>
  24. public bool RecordAnyTime { get; set; }
  25. public bool SkipEpisodesInLibrary { get; set; }
  26. /// <summary>
  27. /// Gets or sets a value indicating whether [record any channel].
  28. /// </summary>
  29. /// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
  30. public bool RecordAnyChannel { get; set; }
  31. public int KeepUpTo { get; set; }
  32. /// <summary>
  33. /// Gets or sets a value indicating whether [record new only].
  34. /// </summary>
  35. /// <value><c>true</c> if [record new only]; otherwise, <c>false</c>.</value>
  36. public bool RecordNewOnly { get; set; }
  37. /// <summary>
  38. /// Gets or sets the days.
  39. /// </summary>
  40. /// <value>The days.</value>
  41. public DayOfWeek[] Days { get; set; }
  42. /// <summary>
  43. /// Gets or sets the day pattern.
  44. /// </summary>
  45. /// <value>The day pattern.</value>
  46. public DayPattern? DayPattern { get; set; }
  47. /// <summary>
  48. /// Gets or sets the image tags.
  49. /// </summary>
  50. /// <value>The image tags.</value>
  51. public Dictionary<ImageType, string> ImageTags { get; set; }
  52. /// <summary>
  53. /// Gets or sets the parent thumb item id.
  54. /// </summary>
  55. /// <value>The parent thumb item id.</value>
  56. public string ParentThumbItemId { get; set; }
  57. /// <summary>
  58. /// Gets or sets the parent thumb image tag.
  59. /// </summary>
  60. /// <value>The parent thumb image tag.</value>
  61. public string ParentThumbImageTag { get; set; }
  62. /// <summary>
  63. /// Gets or sets the parent primary image item identifier.
  64. /// </summary>
  65. /// <value>The parent primary image item identifier.</value>
  66. public string ParentPrimaryImageItemId { get; set; }
  67. /// <summary>
  68. /// Gets or sets the parent primary image tag.
  69. /// </summary>
  70. /// <value>The parent primary image tag.</value>
  71. public string ParentPrimaryImageTag { get; set; }
  72. }
  73. public enum KeepUntil
  74. {
  75. UntilDeleted,
  76. UntilSpaceNeeded,
  77. UntilWatched,
  78. UntilDate
  79. }
  80. }