From a4142e87647cadda1b3a157935e500ade683cc38 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 27 Jul 2013 13:18:10 -0400 Subject: [PATCH] added user id to get ibn methods --- MediaBrowser.Model/ApiClient/IApiClient.cs | 20 ++++++--------- MediaBrowser.Model/Dto/BaseItemDto.cs | 30 ++++++++++++++++++++++ Nuget/MediaBrowser.Common.Internal.nuspec | 4 +-- Nuget/MediaBrowser.Common.nuspec | 2 +- Nuget/MediaBrowser.Server.Core.nuspec | 4 +-- 5 files changed, 43 insertions(+), 17 deletions(-) diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index 89c73db1b..b15d1c1d5 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -219,9 +219,10 @@ namespace MediaBrowser.Model.ApiClient /// Gets a studio /// /// The name. + /// The user id. /// Task{BaseItemDto}. /// userId - Task GetStudioAsync(string name); + Task GetStudioAsync(string name, string userId); /// /// Gets the next up async. @@ -234,17 +235,19 @@ namespace MediaBrowser.Model.ApiClient /// Gets a genre /// /// The name. + /// The user id. /// Task{BaseItemDto}. /// userId - Task GetGenreAsync(string name); + Task GetGenreAsync(string name, string userId); /// /// Gets the artist async. /// /// The name. + /// The user id. /// Task{BaseItemDto}. /// name - Task GetArtistAsync(string name); + Task GetArtistAsync(string name, string userId); /// /// Restarts the server. @@ -262,17 +265,10 @@ namespace MediaBrowser.Model.ApiClient /// Gets a person /// /// The name. + /// The user id. /// Task{BaseItemDto}. /// userId - Task GetPersonAsync(string name); - - /// - /// Gets a year - /// - /// The year. - /// Task{BaseItemDto}. - /// userId - Task GetYearAsync(int year); + Task GetPersonAsync(string name, string userId); /// /// Gets a list of plugins installed on the server diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs index 1c0fbed07..fa9ed2536 100644 --- a/MediaBrowser.Model/Dto/BaseItemDto.cs +++ b/MediaBrowser.Model/Dto/BaseItemDto.cs @@ -703,6 +703,36 @@ namespace MediaBrowser.Model.Dto get { return string.Equals(Type, "AggregateFolder", StringComparison.OrdinalIgnoreCase); } } + [IgnoreDataMember] + public bool IsMusicGenre + { + get { return string.Equals(Type, "MusicGenre", StringComparison.OrdinalIgnoreCase); } + } + + [IgnoreDataMember] + public bool IsGameGenre + { + get { return string.Equals(Type, "GameGenre", StringComparison.OrdinalIgnoreCase); } + } + + [IgnoreDataMember] + public bool IsGenre + { + get { return string.Equals(Type, "Genre", StringComparison.OrdinalIgnoreCase); } + } + + [IgnoreDataMember] + public bool IsArtist + { + get { return string.Equals(Type, "Artist", StringComparison.OrdinalIgnoreCase); } + } + + [IgnoreDataMember] + public bool IsStudio + { + get { return string.Equals(Type, "Studio", StringComparison.OrdinalIgnoreCase); } + } + /// /// Occurs when [property changed]. /// diff --git a/Nuget/MediaBrowser.Common.Internal.nuspec b/Nuget/MediaBrowser.Common.Internal.nuspec index ee3cf1584..d1e556df6 100644 --- a/Nuget/MediaBrowser.Common.Internal.nuspec +++ b/Nuget/MediaBrowser.Common.Internal.nuspec @@ -2,7 +2,7 @@ MediaBrowser.Common.Internal - 3.0.165 + 3.0.166 MediaBrowser.Common.Internal Luke ebr,Luke,scottisafool @@ -12,7 +12,7 @@ Contains common components shared by Media Browser Theater and Media Browser Server. Not intended for plugin developer consumption. Copyright © Media Browser 2013 - + diff --git a/Nuget/MediaBrowser.Common.nuspec b/Nuget/MediaBrowser.Common.nuspec index c572af2ff..d8178ea1c 100644 --- a/Nuget/MediaBrowser.Common.nuspec +++ b/Nuget/MediaBrowser.Common.nuspec @@ -2,7 +2,7 @@ MediaBrowser.Common - 3.0.165 + 3.0.166 MediaBrowser.Common Media Browser Team ebr,Luke,scottisafool diff --git a/Nuget/MediaBrowser.Server.Core.nuspec b/Nuget/MediaBrowser.Server.Core.nuspec index 6ce395ca7..9bbc1832f 100644 --- a/Nuget/MediaBrowser.Server.Core.nuspec +++ b/Nuget/MediaBrowser.Server.Core.nuspec @@ -2,7 +2,7 @@ MediaBrowser.Server.Core - 3.0.165 + 3.0.166 Media Browser.Server.Core Media Browser Team ebr,Luke,scottisafool @@ -12,7 +12,7 @@ Contains core components required to build plugins for Media Browser Server. Copyright © Media Browser 2013 - +