SeriesTimerInfoDto.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 List<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 List<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 a value indicating whether this instance has primary image.
  54. /// </summary>
  55. /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
  56. [IgnoreDataMember]
  57. public bool HasPrimaryImage
  58. {
  59. get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Primary); }
  60. }
  61. /// <summary>
  62. /// Gets or sets the parent thumb item id.
  63. /// </summary>
  64. /// <value>The parent thumb item id.</value>
  65. public string ParentThumbItemId { get; set; }
  66. /// <summary>
  67. /// Gets or sets the parent thumb image tag.
  68. /// </summary>
  69. /// <value>The parent thumb image tag.</value>
  70. public string ParentThumbImageTag { get; set; }
  71. /// <summary>
  72. /// Gets or sets the parent primary image item identifier.
  73. /// </summary>
  74. /// <value>The parent primary image item identifier.</value>
  75. public string ParentPrimaryImageItemId { get; set; }
  76. /// <summary>
  77. /// Gets or sets the parent primary image tag.
  78. /// </summary>
  79. /// <value>The parent primary image tag.</value>
  80. public string ParentPrimaryImageTag { get; set; }
  81. }
  82. public enum KeepUntil
  83. {
  84. UntilDeleted,
  85. UntilSpaceNeeded,
  86. UntilWatched,
  87. UntilDate
  88. }
  89. }