jellyfin/MediaBrowser.Model/Dto/BaseItemPerson.cs

56 lines
1.5 KiB
C#
Raw Normal View History

using System.Diagnostics;
2016-10-21 19:08:34 -07:00
using MediaBrowser.Model.Serialization;
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}")]
2016-07-15 12:53:28 -07:00
public class BaseItemPerson
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
}
}
}