using System; using System.Runtime.Serialization; namespace MediaBrowser.Model.Entities { /// /// This is a stub class containing only basic information about an item /// 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 a value indicating whether this instance is folder. /// /// true if this instance is folder; otherwise, false. public bool IsFolder { 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 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; } } } }