added user id to get ibn methods

This commit is contained in:
Luke Pulverenti 2013-07-27 13:18:10 -04:00
parent 82c3abad2d
commit a4142e8764
5 changed files with 43 additions and 17 deletions

View File

@ -219,9 +219,10 @@ namespace MediaBrowser.Model.ApiClient
/// Gets a studio
/// </summary>
/// <param name="name">The name.</param>
/// <param name="userId">The user id.</param>
/// <returns>Task{BaseItemDto}.</returns>
/// <exception cref="ArgumentNullException">userId</exception>
Task<BaseItemDto> GetStudioAsync(string name);
Task<BaseItemDto> GetStudioAsync(string name, string userId);
/// <summary>
/// Gets the next up async.
@ -234,17 +235,19 @@ namespace MediaBrowser.Model.ApiClient
/// Gets a genre
/// </summary>
/// <param name="name">The name.</param>
/// <param name="userId">The user id.</param>
/// <returns>Task{BaseItemDto}.</returns>
/// <exception cref="ArgumentNullException">userId</exception>
Task<BaseItemDto> GetGenreAsync(string name);
Task<BaseItemDto> GetGenreAsync(string name, string userId);
/// <summary>
/// Gets the artist async.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="userId">The user id.</param>
/// <returns>Task{BaseItemDto}.</returns>
/// <exception cref="ArgumentNullException">name</exception>
Task<BaseItemDto> GetArtistAsync(string name);
Task<BaseItemDto> GetArtistAsync(string name, string userId);
/// <summary>
/// Restarts the server.
@ -262,17 +265,10 @@ namespace MediaBrowser.Model.ApiClient
/// Gets a person
/// </summary>
/// <param name="name">The name.</param>
/// <param name="userId">The user id.</param>
/// <returns>Task{BaseItemDto}.</returns>
/// <exception cref="ArgumentNullException">userId</exception>
Task<BaseItemDto> GetPersonAsync(string name);
/// <summary>
/// Gets a year
/// </summary>
/// <param name="year">The year.</param>
/// <returns>Task{BaseItemDto}.</returns>
/// <exception cref="ArgumentNullException">userId</exception>
Task<BaseItemDto> GetYearAsync(int year);
Task<BaseItemDto> GetPersonAsync(string name, string userId);
/// <summary>
/// Gets a list of plugins installed on the server

View File

@ -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); }
}
/// <summary>
/// Occurs when [property changed].
/// </summary>

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Common.Internal</id>
<version>3.0.165</version>
<version>3.0.166</version>
<title>MediaBrowser.Common.Internal</title>
<authors>Luke</authors>
<owners>ebr,Luke,scottisafool</owners>
@ -12,7 +12,7 @@
<description>Contains common components shared by Media Browser Theater and Media Browser Server. Not intended for plugin developer consumption.</description>
<copyright>Copyright © Media Browser 2013</copyright>
<dependencies>
<dependency id="MediaBrowser.Common" version="3.0.165" />
<dependency id="MediaBrowser.Common" version="3.0.166" />
<dependency id="NLog" version="2.0.1.2" />
<dependency id="ServiceStack.Text" version="3.9.45" />
<dependency id="SimpleInjector" version="2.2.3" />

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Common</id>
<version>3.0.165</version>
<version>3.0.166</version>
<title>MediaBrowser.Common</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>MediaBrowser.Server.Core</id>
<version>3.0.165</version>
<version>3.0.166</version>
<title>Media Browser.Server.Core</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>
@ -12,7 +12,7 @@
<description>Contains core components required to build plugins for Media Browser Server.</description>
<copyright>Copyright © Media Browser 2013</copyright>
<dependencies>
<dependency id="MediaBrowser.Common" version="3.0.165" />
<dependency id="MediaBrowser.Common" version="3.0.166" />
</dependencies>
</metadata>
<files>