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>