jellyfin/MediaBrowser.Model/Dto/BaseItemPerson.cs

63 lines
1.8 KiB
C#
Raw Normal View History

2014-05-11 15:38:10 -07:00
using System.ComponentModel;
using System.Diagnostics;
2013-02-20 18:33:05 -07:00
using System.Runtime.Serialization;
2014-06-29 12:59:52 -07:00
using MediaBrowser.Model.Extensions;
2013-02-20 18:33:05 -07:00
namespace MediaBrowser.Model.Dto
2013-02-20 18:33:05 -07:00
{
/// <summary>
/// This is used by the api to get information about a Person within a BaseItem
/// </summary>
[DebuggerDisplay("Name = {Name}, Role = {Role}, Type = {Type}")]
2014-06-29 12:59:52 -07:00
public class BaseItemPerson : IHasPropertyChangedEvent
2013-02-20 18:33:05 -07:00
{
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
2014-05-11 15:38:10 -07:00
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
2013-02-20 18:33:05 -07:00
/// <summary>
/// Gets or sets the role.
/// </summary>
/// <value>The role.</value>
public string Role { get; set; }
/// <summary>
/// Gets or sets the type.
/// </summary>
/// <value>The type.</value>
public string Type { get; set; }
/// <summary>
/// Gets or sets the primary image tag.
/// </summary>
/// <value>The primary image tag.</value>
2014-05-08 13:09:53 -07:00
public string PrimaryImageTag { get; set; }
2013-02-20 18:33:05 -07:00
/// <summary>
/// Gets a value indicating whether this instance has primary image.
/// </summary>
/// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
[IgnoreDataMember]
public bool HasPrimaryImage
{
2013-02-20 21:37:50 -07:00
get
{
2014-05-08 13:09:53 -07:00
return PrimaryImageTag != null;
2013-02-20 21:37:50 -07:00
}
2013-02-20 18:33:05 -07:00
}
/// <summary>
/// Occurs when [property changed].
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
}
}