2016-07-29 19:18:03 +00:00
|
|
|
|
using System.Diagnostics;
|
2013-02-21 01:33:05 +00:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
2013-02-21 17:50:46 +00:00
|
|
|
|
namespace MediaBrowser.Model.Dto
|
2013-02-21 01:33:05 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This is used by the api to get information about a Person within a BaseItem
|
|
|
|
|
/// </summary>
|
2014-01-12 09:31:24 +00:00
|
|
|
|
[DebuggerDisplay("Name = {Name}, Role = {Role}, Type = {Type}")]
|
2016-07-15 19:53:28 +00:00
|
|
|
|
public class BaseItemPerson
|
2013-02-21 01:33:05 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
2014-05-11 22:38:10 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The identifier.</value>
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
2013-02-21 01:33:05 +00: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 20:09:53 +00:00
|
|
|
|
public string PrimaryImageTag { get; set; }
|
2013-02-21 01:33:05 +00: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 04:37:50 +00:00
|
|
|
|
get
|
|
|
|
|
{
|
2014-05-08 20:09:53 +00:00
|
|
|
|
return PrimaryImageTag != null;
|
2013-02-21 04:37:50 +00:00
|
|
|
|
}
|
2013-02-21 01:33:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|