BaseItemPerson.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #nullable disable
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text.Json.Serialization;
  5. using MediaBrowser.Model.Entities;
  6. namespace MediaBrowser.Model.Dto
  7. {
  8. /// <summary>
  9. /// This is used by the api to get information about a Person within a BaseItem.
  10. /// </summary>
  11. public class BaseItemPerson
  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 identifier.
  20. /// </summary>
  21. /// <value>The identifier.</value>
  22. public Guid Id { get; set; }
  23. /// <summary>
  24. /// Gets or sets the role.
  25. /// </summary>
  26. /// <value>The role.</value>
  27. public string Role { get; set; }
  28. /// <summary>
  29. /// Gets or sets the type.
  30. /// </summary>
  31. /// <value>The type.</value>
  32. public string Type { get; set; }
  33. /// <summary>
  34. /// Gets or sets the primary image tag.
  35. /// </summary>
  36. /// <value>The primary image tag.</value>
  37. public string PrimaryImageTag { get; set; }
  38. /// <summary>
  39. /// Gets or sets the primary image blurhash.
  40. /// </summary>
  41. /// <value>The primary image blurhash.</value>
  42. public Dictionary<ImageType, Dictionary<string, string>> ImageBlurHashes { get; set; }
  43. /// <summary>
  44. /// Gets a value indicating whether this instance has primary image.
  45. /// </summary>
  46. /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
  47. [JsonIgnore]
  48. public bool HasPrimaryImage => PrimaryImageTag != null;
  49. }
  50. }