using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.Serialization;
using MediaBrowser.Model.Extensions;
namespace MediaBrowser.Model.Dto
{
///
/// This is used by the api to get information about a Person within a BaseItem
///
[DebuggerDisplay("Name = {Name}, Role = {Role}, Type = {Type}")]
public class BaseItemPerson : IHasPropertyChangedEvent
{
///
/// 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.
[IgnoreDataMember]
public bool HasPrimaryImage
{
get
{
return PrimaryImageTag != null;
}
}
///
/// Occurs when [property changed].
///
public event PropertyChangedEventHandler PropertyChanged;
}
}