From 2467ca966823d78737a268d2c3b3730bc3b286cc Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Mon, 10 Sep 2012 21:34:02 -0400 Subject: Moved some entities to the main project --- MediaBrowser.Controller/Entities/BaseItem.cs | 173 +++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 MediaBrowser.Controller/Entities/BaseItem.cs (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs') diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs new file mode 100644 index 0000000000..68a192065f --- /dev/null +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -0,0 +1,173 @@ +using MediaBrowser.Model.Entities; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace MediaBrowser.Controller.Entities +{ + public abstract class BaseItem : BaseEntity, IHasProviderIds + { + public string SortName { get; set; } + + /// + /// When the item first debuted. For movies this could be premiere date, episodes would be first aired + /// + public DateTime? PremiereDate { get; set; } + + public string Path { get; set; } + + public Folder Parent { get; set; } + + public string LogoImagePath { get; set; } + + public string ArtImagePath { get; set; } + + public string ThumbnailImagePath { get; set; } + + public string BannerImagePath { get; set; } + + public IEnumerable BackdropImagePaths { get; set; } + + public string OfficialRating { get; set; } + + public string CustomRating { get; set; } + public string CustomPin { get; set; } + + public string Language { get; set; } + public string Overview { get; set; } + public List Taglines { get; set; } + + /// + /// Using a Dictionary to prevent duplicates + /// + public Dictionary People { get; set; } + + public List Studios { get; set; } + + public List Genres { get; set; } + + public string DisplayMediaType { get; set; } + + public float? UserRating { get; set; } + public long? RunTimeTicks { get; set; } + + public string AspectRatio { get; set; } + public int? ProductionYear { get; set; } + + /// + /// If the item is part of a series, this is it's number in the series. + /// This could be episode number, album track number, etc. + /// + public int? IndexNumber { get; set; } + + /// + /// For an episode this could be the season number, or for a song this could be the disc number. + /// + public int? ParentIndexNumber { get; set; } + + public IEnumerable