added a new MusicGenre entity

This commit is contained in:
Luke Pulverenti
2013-06-10 23:31:00 -04:00
parent fab983b6dc
commit 18325159c5
18 changed files with 450 additions and 16 deletions

View File

@@ -0,0 +1,18 @@

namespace MediaBrowser.Controller.Entities.Audio
{
/// <summary>
/// Class MusicGenre
/// </summary>
public class MusicGenre : BaseItem
{
/// <summary>
/// Gets the user data key.
/// </summary>
/// <returns>System.String.</returns>
public override string GetUserDataKey()
{
return "MusicGenre-" + Name;
}
}
}

View File

@@ -40,6 +40,12 @@ namespace MediaBrowser.Controller
/// <value>The genre path.</value>
string GenrePath { get; }
/// <summary>
/// Gets the music genre path.
/// </summary>
/// <value>The music genre path.</value>
string MusicGenrePath { get; }
/// <summary>
/// Gets the artists path.
/// </summary>

View File

@@ -81,6 +81,14 @@ namespace MediaBrowser.Controller.Library
/// <returns>Task{Genre}.</returns>
Task<Genre> GetGenre(string name, bool allowSlowProviders = false);
/// <summary>
/// Gets the genre.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="allowSlowProviders">if set to <c>true</c> [allow slow providers].</param>
/// <returns>Task{MusicGenre}.</returns>
Task<MusicGenre> GetMusicGenre(string name, bool allowSlowProviders = false);
/// <summary>
/// Gets a Year
/// </summary>

View File

@@ -73,6 +73,7 @@
<Compile Include="Configuration\IServerConfigurationManager.cs" />
<Compile Include="Dto\SessionInfoDtoBuilder.cs" />
<Compile Include="Entities\Audio\MusicAlbumDisc.cs" />
<Compile Include="Entities\Audio\MusicGenre.cs" />
<Compile Include="Entities\IByReferenceItem.cs" />
<Compile Include="Entities\MusicVideo.cs" />
<Compile Include="Library\ILibraryPostScanTask.cs" />