jellyfin/MediaBrowser.Model/Dto/BaseItemPerson.cs

56 lines
1.5 KiB
C#
Raw Normal View History

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