diff options
Diffstat (limited to 'MediaBrowser.Controller')
4 files changed, 30 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/GameGenre.cs b/MediaBrowser.Controller/Entities/GameGenre.cs new file mode 100644 index 000000000..f2462aac2 --- /dev/null +++ b/MediaBrowser.Controller/Entities/GameGenre.cs @@ -0,0 +1,15 @@ + +namespace MediaBrowser.Controller.Entities +{ + public class GameGenre : BaseItem, IItemByName + { + /// <summary> + /// Gets the user data key. + /// </summary> + /// <returns>System.String.</returns> + public override string GetUserDataKey() + { + return "GameGenre-" + Name; + } + } +} diff --git a/MediaBrowser.Controller/IServerApplicationPaths.cs b/MediaBrowser.Controller/IServerApplicationPaths.cs index 58b6bb12f..57cb7c7dd 100644 --- a/MediaBrowser.Controller/IServerApplicationPaths.cs +++ b/MediaBrowser.Controller/IServerApplicationPaths.cs @@ -45,6 +45,12 @@ namespace MediaBrowser.Controller /// </summary> /// <value>The music genre path.</value> string MusicGenrePath { get; } + + /// <summary> + /// Gets the game genre path. + /// </summary> + /// <value>The game genre path.</value> + string GameGenrePath { get; } /// <summary> /// Gets the artists path. diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index 6accb0f4a..ddfec703c 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -87,6 +87,14 @@ namespace MediaBrowser.Controller.Library /// <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 the game genre. + /// </summary> + /// <param name="name">The name.</param> + /// <param name="allowSlowProviders">if set to <c>true</c> [allow slow providers].</param> + /// <returns>Task{GameGenre}.</returns> + Task<GameGenre> GetGameGenre(string name, bool allowSlowProviders = false); /// <summary> /// Gets a Year diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj index 228c6380f..502c7a7b8 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -75,6 +75,7 @@ <Compile Include="Entities\Audio\MusicAlbumDisc.cs" /> <Compile Include="Entities\Audio\MusicGenre.cs" /> <Compile Include="Entities\Game.cs" /> + <Compile Include="Entities\GameGenre.cs" /> <Compile Include="Entities\IByReferenceItem.cs" /> <Compile Include="Entities\IItemByName.cs" /> <Compile Include="Entities\MusicVideo.cs" /> |
