using MediaBrowser.Model.Dto; 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 string 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 logo image tag. /// /// The logo image tag. public string LogoImageTag { get; set; } /// /// Gets or sets the logo item identifier. /// /// The logo item identifier. public string LogoItemId { get; set; } /// /// Gets or sets the thumb image tag. /// /// The thumb image tag. public string 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 string BackdropImageTag { get; set; } /// /// Gets or sets the thumb item identifier. /// /// The thumb item identifier. public string BackdropItemId { 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 or sets the media streams. /// /// The media streams. public List MediaStreams { get; set; } /// /// Gets or sets the chapter images item identifier. /// /// The chapter images item identifier. public string ChapterImagesItemId { get; set; } /// /// Gets or sets the chapters. /// /// The chapters. public List Chapters { 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 != null; } } public BaseItemInfo() { Artists = new List(); MediaStreams = new List(); Chapters = new List(); } } }