2
0

BaseItemPerson.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using MediaBrowser.Model.Serialization;
  2. namespace MediaBrowser.Model.Dto
  3. {
  4. /// <summary>
  5. /// This is used by the api to get information about a Person within a BaseItem
  6. /// </summary>
  7. public class BaseItemPerson
  8. {
  9. /// <summary>
  10. /// Gets or sets the name.
  11. /// </summary>
  12. /// <value>The name.</value>
  13. public string Name { get; set; }
  14. /// <summary>
  15. /// Gets or sets the identifier.
  16. /// </summary>
  17. /// <value>The identifier.</value>
  18. public string Id { get; set; }
  19. /// <summary>
  20. /// Gets or sets the role.
  21. /// </summary>
  22. /// <value>The role.</value>
  23. public string Role { get; set; }
  24. /// <summary>
  25. /// Gets or sets the type.
  26. /// </summary>
  27. /// <value>The type.</value>
  28. public string Type { get; set; }
  29. /// <summary>
  30. /// Gets or sets the primary image tag.
  31. /// </summary>
  32. /// <value>The primary image tag.</value>
  33. public string PrimaryImageTag { get; set; }
  34. /// <summary>
  35. /// Gets a value indicating whether this instance has primary image.
  36. /// </summary>
  37. /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
  38. [IgnoreDataMember]
  39. public bool HasPrimaryImage => PrimaryImageTag != null;
  40. }
  41. }