BaseItemInfo.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Runtime.Serialization;
  3. namespace MediaBrowser.Model.Entities
  4. {
  5. /// <summary>
  6. /// This is a stub class containing only basic information about an item
  7. /// </summary>
  8. public class BaseItemInfo
  9. {
  10. /// <summary>
  11. /// Gets or sets the name.
  12. /// </summary>
  13. /// <value>The name.</value>
  14. public string Name { get; set; }
  15. /// <summary>
  16. /// Gets or sets the id.
  17. /// </summary>
  18. /// <value>The id.</value>
  19. public string Id { get; set; }
  20. /// <summary>
  21. /// Gets or sets the type.
  22. /// </summary>
  23. /// <value>The type.</value>
  24. public string Type { get; set; }
  25. /// <summary>
  26. /// Gets or sets the type of the media.
  27. /// </summary>
  28. /// <value>The type of the media.</value>
  29. public string MediaType { get; set; }
  30. /// <summary>
  31. /// Gets or sets the run time ticks.
  32. /// </summary>
  33. /// <value>The run time ticks.</value>
  34. public long? RunTimeTicks { get; set; }
  35. /// <summary>
  36. /// Gets or sets the primary image tag.
  37. /// </summary>
  38. /// <value>The primary image tag.</value>
  39. public Guid? PrimaryImageTag { get; set; }
  40. /// <summary>
  41. /// Gets a value indicating whether this instance has primary image.
  42. /// </summary>
  43. /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
  44. [IgnoreDataMember]
  45. public bool HasPrimaryImage
  46. {
  47. get { return PrimaryImageTag.HasValue; }
  48. }
  49. }
  50. }