2
0

SeriesTimerInfoDto.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Diagnostics;
  5. using System.Runtime.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. /// <summary>
  15. /// Gets or sets a value indicating whether [record any time].
  16. /// </summary>
  17. /// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value>
  18. public bool RecordAnyTime { get; set; }
  19. /// <summary>
  20. /// Gets or sets a value indicating whether [record any channel].
  21. /// </summary>
  22. /// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
  23. public bool RecordAnyChannel { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether [record new only].
  26. /// </summary>
  27. /// <value><c>true</c> if [record new only]; otherwise, <c>false</c>.</value>
  28. public bool RecordNewOnly { get; set; }
  29. /// <summary>
  30. /// Gets or sets the days.
  31. /// </summary>
  32. /// <value>The days.</value>
  33. public List<DayOfWeek> Days { get; set; }
  34. /// <summary>
  35. /// Gets or sets the day pattern.
  36. /// </summary>
  37. /// <value>The day pattern.</value>
  38. public DayPattern? DayPattern { get; set; }
  39. /// <summary>
  40. /// Gets or sets the image tags.
  41. /// </summary>
  42. /// <value>The image tags.</value>
  43. public Dictionary<ImageType, string> ImageTags { get; set; }
  44. /// <summary>
  45. /// Gets a value indicating whether this instance has primary image.
  46. /// </summary>
  47. /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
  48. [IgnoreDataMember]
  49. public bool HasPrimaryImage
  50. {
  51. get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Primary); }
  52. }
  53. public SeriesTimerInfoDto()
  54. {
  55. ImageTags = new Dictionary<ImageType, string>();
  56. Days = new List<DayOfWeek>();
  57. }
  58. }
  59. }