using System.Text.Json.Serialization;
namespace MediaBrowser.Model.Dto
{
///
/// This is used by the api to get information about a Person within a BaseItem
///
public class BaseItemPerson
{
///
/// Gets or sets the name.
///
/// The name.
public string Name { get; set; }
///
/// Gets or sets the identifier.
///
/// The identifier.
public string Id { get; set; }
///
/// Gets or sets the role.
///
/// The role.
public string Role { get; set; }
///
/// Gets or sets the type.
///
/// The type.
public string Type { get; set; }
///
/// Gets or sets the primary image tag.
///
/// The primary image tag.
public string PrimaryImageTag { get; set; }
///
/// Gets a value indicating whether this instance has primary image.
///
/// true if this instance has primary image; otherwise, false.
[JsonIgnore]
public bool HasPrimaryImage => PrimaryImageTag != null;
}
}