mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-23 22:21:04 +02:00
added user id to get ibn methods
This commit is contained in:
parent
82c3abad2d
commit
a4142e8764
|
@ -219,9 +219,10 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// Gets a studio
|
/// Gets a studio
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">The name.</param>
|
/// <param name="name">The name.</param>
|
||||||
|
/// <param name="userId">The user id.</param>
|
||||||
/// <returns>Task{BaseItemDto}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="ArgumentNullException">userId</exception>
|
/// <exception cref="ArgumentNullException">userId</exception>
|
||||||
Task<BaseItemDto> GetStudioAsync(string name);
|
Task<BaseItemDto> GetStudioAsync(string name, string userId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the next up async.
|
/// Gets the next up async.
|
||||||
|
@ -234,17 +235,19 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// Gets a genre
|
/// Gets a genre
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">The name.</param>
|
/// <param name="name">The name.</param>
|
||||||
|
/// <param name="userId">The user id.</param>
|
||||||
/// <returns>Task{BaseItemDto}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="ArgumentNullException">userId</exception>
|
/// <exception cref="ArgumentNullException">userId</exception>
|
||||||
Task<BaseItemDto> GetGenreAsync(string name);
|
Task<BaseItemDto> GetGenreAsync(string name, string userId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the artist async.
|
/// Gets the artist async.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">The name.</param>
|
/// <param name="name">The name.</param>
|
||||||
|
/// <param name="userId">The user id.</param>
|
||||||
/// <returns>Task{BaseItemDto}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="ArgumentNullException">name</exception>
|
/// <exception cref="ArgumentNullException">name</exception>
|
||||||
Task<BaseItemDto> GetArtistAsync(string name);
|
Task<BaseItemDto> GetArtistAsync(string name, string userId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Restarts the server.
|
/// Restarts the server.
|
||||||
|
@ -262,17 +265,10 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// Gets a person
|
/// Gets a person
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">The name.</param>
|
/// <param name="name">The name.</param>
|
||||||
|
/// <param name="userId">The user id.</param>
|
||||||
/// <returns>Task{BaseItemDto}.</returns>
|
/// <returns>Task{BaseItemDto}.</returns>
|
||||||
/// <exception cref="ArgumentNullException">userId</exception>
|
/// <exception cref="ArgumentNullException">userId</exception>
|
||||||
Task<BaseItemDto> GetPersonAsync(string name);
|
Task<BaseItemDto> GetPersonAsync(string name, string userId);
|
||||||
|
|
||||||
/// <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);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a list of plugins installed on the server
|
/// Gets a list of plugins installed on the server
|
||||||
|
|
|
@ -703,6 +703,36 @@ namespace MediaBrowser.Model.Dto
|
||||||
get { return string.Equals(Type, "AggregateFolder", StringComparison.OrdinalIgnoreCase); }
|
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>
|
/// <summary>
|
||||||
/// Occurs when [property changed].
|
/// Occurs when [property changed].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common.Internal</id>
|
<id>MediaBrowser.Common.Internal</id>
|
||||||
<version>3.0.165</version>
|
<version>3.0.166</version>
|
||||||
<title>MediaBrowser.Common.Internal</title>
|
<title>MediaBrowser.Common.Internal</title>
|
||||||
<authors>Luke</authors>
|
<authors>Luke</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<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>
|
<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>
|
<copyright>Copyright © Media Browser 2013</copyright>
|
||||||
<dependencies>
|
<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="NLog" version="2.0.1.2" />
|
||||||
<dependency id="ServiceStack.Text" version="3.9.45" />
|
<dependency id="ServiceStack.Text" version="3.9.45" />
|
||||||
<dependency id="SimpleInjector" version="2.2.3" />
|
<dependency id="SimpleInjector" version="2.2.3" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common</id>
|
<id>MediaBrowser.Common</id>
|
||||||
<version>3.0.165</version>
|
<version>3.0.166</version>
|
||||||
<title>MediaBrowser.Common</title>
|
<title>MediaBrowser.Common</title>
|
||||||
<authors>Media Browser Team</authors>
|
<authors>Media Browser Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Server.Core</id>
|
<id>MediaBrowser.Server.Core</id>
|
||||||
<version>3.0.165</version>
|
<version>3.0.166</version>
|
||||||
<title>Media Browser.Server.Core</title>
|
<title>Media Browser.Server.Core</title>
|
||||||
<authors>Media Browser Team</authors>
|
<authors>Media Browser Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<description>Contains core components required to build plugins for Media Browser Server.</description>
|
<description>Contains core components required to build plugins for Media Browser Server.</description>
|
||||||
<copyright>Copyright © Media Browser 2013</copyright>
|
<copyright>Copyright © Media Browser 2013</copyright>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="MediaBrowser.Common" version="3.0.165" />
|
<dependency id="MediaBrowser.Common" version="3.0.166" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
|
|
Loading…
Reference in a new issue