using System; using System.ComponentModel; using System.Runtime.Serialization; namespace MediaBrowser.Model.Dto { /// /// This is used by the api to get information about a Person within a BaseItem /// public class BaseItemPerson : INotifyPropertyChanged { /// /// Gets or sets the name. /// /// The name. public string Name { 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 Guid? 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.HasValue; } } /// /// Occurs when [property changed]. /// public event PropertyChangedEventHandler PropertyChanged; } }