BaseItemInfo.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Runtime.Serialization;
  5. namespace MediaBrowser.Model.Entities
  6. {
  7. /// <summary>
  8. /// This is a stub class containing only basic information about an item
  9. /// </summary>
  10. [DebuggerDisplay("Name = {Name}, ID = {Id}, Type = {Type}")]
  11. public class BaseItemInfo
  12. {
  13. /// <summary>
  14. /// Gets or sets the name.
  15. /// </summary>
  16. /// <value>The name.</value>
  17. public string Name { get; set; }
  18. /// <summary>
  19. /// Gets or sets the id.
  20. /// </summary>
  21. /// <value>The id.</value>
  22. public string Id { get; set; }
  23. /// <summary>
  24. /// Gets or sets the type.
  25. /// </summary>
  26. /// <value>The type.</value>
  27. public string Type { get; set; }
  28. /// <summary>
  29. /// Gets or sets the type of the media.
  30. /// </summary>
  31. /// <value>The type of the media.</value>
  32. public string MediaType { get; set; }
  33. /// <summary>
  34. /// Gets or sets the run time ticks.
  35. /// </summary>
  36. /// <value>The run time ticks.</value>
  37. public long? RunTimeTicks { get; set; }
  38. /// <summary>
  39. /// Gets or sets the primary image tag.
  40. /// </summary>
  41. /// <value>The primary image tag.</value>
  42. public Guid? PrimaryImageTag { get; set; }
  43. /// <summary>
  44. /// Gets or sets the primary image item identifier.
  45. /// </summary>
  46. /// <value>The primary image item identifier.</value>
  47. public string PrimaryImageItemId { get; set; }
  48. /// <summary>
  49. /// Gets or sets the logo image tag.
  50. /// </summary>
  51. /// <value>The logo image tag.</value>
  52. public Guid? LogoImageTag { get; set; }
  53. /// <summary>
  54. /// Gets or sets the logo item identifier.
  55. /// </summary>
  56. /// <value>The logo item identifier.</value>
  57. public string LogoItemId { get; set; }
  58. /// <summary>
  59. /// Gets or sets the thumb image tag.
  60. /// </summary>
  61. /// <value>The thumb image tag.</value>
  62. public Guid? ThumbImageTag { get; set; }
  63. /// <summary>
  64. /// Gets or sets the thumb item identifier.
  65. /// </summary>
  66. /// <value>The thumb item identifier.</value>
  67. public string ThumbItemId { get; set; }
  68. /// <summary>
  69. /// Gets or sets the thumb image tag.
  70. /// </summary>
  71. /// <value>The thumb image tag.</value>
  72. public Guid? BackdropImageTag { get; set; }
  73. /// <summary>
  74. /// Gets or sets the thumb item identifier.
  75. /// </summary>
  76. /// <value>The thumb item identifier.</value>
  77. public string BackdropItemId { get; set; }
  78. /// <summary>
  79. /// Gets or sets the premiere date.
  80. /// </summary>
  81. /// <value>The premiere date.</value>
  82. public DateTime? PremiereDate { get; set; }
  83. /// <summary>
  84. /// Gets or sets the production year.
  85. /// </summary>
  86. /// <value>The production year.</value>
  87. public int? ProductionYear { get; set; }
  88. /// <summary>
  89. /// Gets or sets the index number.
  90. /// </summary>
  91. /// <value>The index number.</value>
  92. public int? IndexNumber { get; set; }
  93. /// <summary>
  94. /// Gets or sets the index number end.
  95. /// </summary>
  96. /// <value>The index number end.</value>
  97. public int? IndexNumberEnd { get; set; }
  98. /// <summary>
  99. /// Gets or sets the parent index number.
  100. /// </summary>
  101. /// <value>The parent index number.</value>
  102. public int? ParentIndexNumber { get; set; }
  103. /// <summary>
  104. /// Gets or sets the name of the series.
  105. /// </summary>
  106. /// <value>The name of the series.</value>
  107. public string SeriesName { get; set; }
  108. /// <summary>
  109. /// Gets or sets the album.
  110. /// </summary>
  111. /// <value>The album.</value>
  112. public string Album { get; set; }
  113. /// <summary>
  114. /// Gets or sets the artists.
  115. /// </summary>
  116. /// <value>The artists.</value>
  117. public List<string> Artists { get; set; }
  118. /// <summary>
  119. /// Gets a value indicating whether this instance has primary image.
  120. /// </summary>
  121. /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
  122. [IgnoreDataMember]
  123. public bool HasPrimaryImage
  124. {
  125. get { return PrimaryImageTag.HasValue; }
  126. }
  127. public BaseItemInfo()
  128. {
  129. Artists = new List<string>();
  130. }
  131. }
  132. }