added recording progress bars

This commit is contained in:
Luke Pulverenti
2014-01-14 15:24:56 -05:00
parent f4b890f163
commit e9a5bb699e
7 changed files with 22 additions and 69 deletions

View File

@@ -23,7 +23,7 @@ namespace MediaBrowser.Controller.Entities
/// <summary>
/// Class BaseItem
/// </summary>
public abstract class BaseItem : IHasProviderIds, IBaseItem, IHasImages, IHasUserData
public abstract class BaseItem : IHasProviderIds, ILibraryItem, IHasImages, IHasUserData
{
protected BaseItem()
{
@@ -504,28 +504,6 @@ namespace MediaBrowser.Controller.Entities
/// <value>The people.</value>
public List<PersonInfo> People { get; set; }
/// <summary>
/// Override this if you need to combine/collapse person information
/// </summary>
/// <value>All people.</value>
[IgnoreDataMember]
public virtual IEnumerable<PersonInfo> AllPeople
{
get { return People; }
}
[IgnoreDataMember]
public virtual IEnumerable<string> AllStudios
{
get { return Studios; }
}
[IgnoreDataMember]
public virtual IEnumerable<string> AllGenres
{
get { return Genres; }
}
/// <summary>
/// Gets or sets the studios.
/// </summary>

View File

@@ -5,7 +5,7 @@ namespace MediaBrowser.Controller.Entities
/// <summary>
/// Interface ILibraryItem
/// </summary>
public interface IBaseItem
public interface ILibraryItem
{
/// <summary>
/// Gets the name.

View File

@@ -122,48 +122,6 @@ namespace MediaBrowser.Controller.Entities.TV
return base.GetUserDataKey();
}
/// <summary>
/// Override this if you need to combine/collapse person information
/// </summary>
/// <value>All people.</value>
[IgnoreDataMember]
public override IEnumerable<PersonInfo> AllPeople
{
get
{
if (People == null) return Series != null ? Series.People : People;
return Series != null && Series.People != null ? People.Concat(Series.People) : base.AllPeople;
}
}
/// <summary>
/// Gets all genres.
/// </summary>
/// <value>All genres.</value>
[IgnoreDataMember]
public override IEnumerable<string> AllGenres
{
get
{
if (Genres == null) return Series != null ? Series.Genres : Genres;
return Series != null && Series.Genres != null ? Genres.Concat(Series.Genres) : base.AllGenres;
}
}
/// <summary>
/// Gets all studios.
/// </summary>
/// <value>All studios.</value>
[IgnoreDataMember]
public override IEnumerable<string> AllStudios
{
get
{
if (Studios == null) return Series != null ? Series.Studios : Studios;
return Series != null && Series.Studios != null ? Studios.Concat(Series.Studios) : base.AllStudios;
}
}
/// <summary>
/// Our rating comes from our series
/// </summary>

View File

@@ -99,7 +99,7 @@
<Compile Include="Entities\IHasTrailers.cs" />
<Compile Include="Entities\IHasUserData.cs" />
<Compile Include="Entities\IItemByName.cs" />
<Compile Include="Entities\IBaseItem.cs" />
<Compile Include="Entities\ILibraryItem.cs" />
<Compile Include="Entities\ImageSourceInfo.cs" />
<Compile Include="Entities\LinkedChild.cs" />
<Compile Include="Entities\MusicVideo.cs" />