Files
jellyfin-jellyfin-1/MediaBrowser.Model/Dto/BaseItemPerson.cs

56 lines
1.5 KiB
C#
Raw Normal View History

using System.Diagnostics;
2016-10-21 22:08:34 -04:00
using MediaBrowser.Model.Serialization;
2013-02-20 20:33:05 -05:00
namespace MediaBrowser.Model.Dto
2013-02-20 20:33:05 -05: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 15:53:28 -04:00
public class BaseItemPerson
2013-02-20 20:33:05 -05:00
{
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
2014-05-11 18:38:10 -04:00
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
2013-02-20 20:33:05 -05: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 16:09:53 -04:00
public string PrimaryImageTag { get; set; }
2013-02-20 20:33:05 -05: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 23:37:50 -05:00
get
{
2014-05-08 16:09:53 -04:00
return PrimaryImageTag != null;
2013-02-20 23:37:50 -05:00
}
2013-02-20 20:33:05 -05:00
}
}
}