|
|
@ -78,7 +78,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
/// Class UpdateDisplayPreferences
|
|
|
|
/// Class UpdateDisplayPreferences
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Users/{UserId}/Items/{Id}/DisplayPreferences", "POST")]
|
|
|
|
[Route("/Users/{UserId}/Items/{Id}/DisplayPreferences", "POST")]
|
|
|
|
[ServiceStack.ServiceHost.Api(("Updates a user's display preferences for an item"))]
|
|
|
|
[Api(("Updates a user's display preferences for an item"))]
|
|
|
|
public class UpdateDisplayPreferences : DisplayPreferences, IReturnVoid
|
|
|
|
public class UpdateDisplayPreferences : DisplayPreferences, IReturnVoid
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -93,7 +93,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
/// Class MarkFavoriteItem
|
|
|
|
/// Class MarkFavoriteItem
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Users/{UserId}/FavoriteItems/{Id}", "POST")]
|
|
|
|
[Route("/Users/{UserId}/FavoriteItems/{Id}", "POST")]
|
|
|
|
[ServiceStack.ServiceHost.Api(Description = "Marks an item as a favorite")]
|
|
|
|
[Api(Description = "Marks an item as a favorite")]
|
|
|
|
public class MarkFavoriteItem : IReturnVoid
|
|
|
|
public class MarkFavoriteItem : IReturnVoid
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -115,7 +115,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
/// Class UnmarkFavoriteItem
|
|
|
|
/// Class UnmarkFavoriteItem
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Users/{UserId}/FavoriteItems/{Id}", "DELETE")]
|
|
|
|
[Route("/Users/{UserId}/FavoriteItems/{Id}", "DELETE")]
|
|
|
|
[ServiceStack.ServiceHost.Api(Description = "Unmarks an item as a favorite")]
|
|
|
|
[Api(Description = "Unmarks an item as a favorite")]
|
|
|
|
public class UnmarkFavoriteItem : IReturnVoid
|
|
|
|
public class UnmarkFavoriteItem : IReturnVoid
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -498,7 +498,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
|
|
|
|
|
|
|
|
var item = (Folder)DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager, user.Id);
|
|
|
|
var item = DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager, user.Id);
|
|
|
|
|
|
|
|
|
|
|
|
// Get the user data for this item
|
|
|
|
// Get the user data for this item
|
|
|
|
var data = item.GetUserData(user, true);
|
|
|
|
var data = item.GetUserData(user, true);
|
|
|
@ -519,7 +519,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
|
|
|
|
|
|
|
|
var item = (Folder)DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager, user.Id);
|
|
|
|
var item = DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager, user.Id);
|
|
|
|
|
|
|
|
|
|
|
|
// Get the user data for this item
|
|
|
|
// Get the user data for this item
|
|
|
|
var data = item.GetUserData(user, true);
|
|
|
|
var data = item.GetUserData(user, true);
|
|
|
@ -540,7 +540,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
|
|
|
|
|
|
|
|
var item = (Folder)DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager, user.Id);
|
|
|
|
var item = DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager, user.Id);
|
|
|
|
|
|
|
|
|
|
|
|
// Get the user data for this item
|
|
|
|
// Get the user data for this item
|
|
|
|
var data = item.GetUserData(user, true);
|
|
|
|
var data = item.GetUserData(user, true);
|
|
|
@ -560,7 +560,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
|
|
|
|
|
|
|
|
var item = (Folder)DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager, user.Id);
|
|
|
|
var item = DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager, user.Id);
|
|
|
|
|
|
|
|
|
|
|
|
// Get the user data for this item
|
|
|
|
// Get the user data for this item
|
|
|
|
var data = item.GetUserData(user, true);
|
|
|
|
var data = item.GetUserData(user, true);
|
|
|
|