#nullable disable
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using MediaBrowser.Model.Entities;
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 Guid 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 or sets the primary image blurhash.
///
/// The primary image blurhash.
public Dictionary> ImageBlurHashes { 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;
}
}