using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.Serialization; namespace MediaBrowser.Model.Entities { /// /// This is a stub class containing only basic information about an item /// [DebuggerDisplay("Name = {Name}, ID = {Id}, Type = {Type}")] public class BaseItemInfo { /// /// Gets or sets the name. /// /// The name. public string Name { get; set; } /// /// Gets or sets the id. /// /// The id. public string Id { get; set; } /// /// Gets or sets the type. /// /// The type. public string Type { get; set; } /// /// Gets or sets the type of the media. /// /// The type of the media. public string MediaType { get; set; } /// /// Gets or sets the run time ticks. /// /// The run time ticks. public long? RunTimeTicks { get; set; } /// /// Gets or sets the primary image tag. /// /// The primary image tag. public Guid? PrimaryImageTag { get; set; } /// /// Gets or sets the primary image item identifier. /// /// The primary image item identifier. public string PrimaryImageItemId { get; set; } /// /// Gets or sets the thumb image tag. /// /// The thumb image tag. public Guid? ThumbImageTag { get; set; } /// /// Gets or sets the thumb item identifier. /// /// The thumb item identifier. public string ThumbItemId { get; set; } /// /// Gets or sets the thumb image tag. /// /// The thumb image tag. public Guid? BackdropImageTag { get; set; } /// /// Gets or sets the thumb item identifier. /// /// The thumb item identifier. public string BackdropItemId { get; set; } /// /// Gets or sets the media version identifier. /// /// The media version identifier. public string MediaSourceId { get; set; } /// /// Gets or sets the premiere date. /// /// The premiere date. public DateTime? PremiereDate { get; set; } /// /// Gets or sets the production year. /// /// The production year. public int? ProductionYear { get; set; } /// /// Gets or sets the index number. /// /// The index number. public int? IndexNumber { get; set; } /// /// Gets or sets the index number end. /// /// The index number end. public int? IndexNumberEnd { get; set; } /// /// Gets or sets the parent index number. /// /// The parent index number. public int? ParentIndexNumber { get; set; } /// /// Gets or sets the name of the series. /// /// The name of the series. public string SeriesName { get; set; } /// /// Gets or sets the album. /// /// The album. public string Album { get; set; } /// /// Gets or sets the artists. /// /// The artists. public List Artists { get; set; } /// /// Gets a value indicating whether this instance has primary image. /// /// true if this instance has primary image; otherwise, false. [IgnoreDataMember] public bool HasPrimaryImage { get { return PrimaryImageTag.HasValue; } } public BaseItemInfo() { Artists = new List(); } } }