mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-05 13:53:20 +01:00
added generic remote control commands
This commit is contained in:
@@ -12,8 +12,7 @@ namespace MediaBrowser.Api
|
||||
/// <summary>
|
||||
/// Class UpdateDisplayPreferences
|
||||
/// </summary>
|
||||
[Route("/DisplayPreferences/{DisplayPreferencesId}", "POST")]
|
||||
[Api(("Updates a user's display preferences for an item"))]
|
||||
[Route("/DisplayPreferences/{DisplayPreferencesId}", "POST", Summary = "Updates a user's display preferences for an item")]
|
||||
public class UpdateDisplayPreferences : DisplayPreferences, IReturnVoid
|
||||
{
|
||||
/// <summary>
|
||||
@@ -30,8 +29,7 @@ namespace MediaBrowser.Api
|
||||
public string Client { get; set; }
|
||||
}
|
||||
|
||||
[Route("/DisplayPreferences/{Id}", "GET")]
|
||||
[Api(("Gets a user's display preferences for an item"))]
|
||||
[Route("/DisplayPreferences/{Id}", "GET", Summary = "Gets a user's display preferences for an item")]
|
||||
public class GetDisplayPreferences : IReturn<DisplayPreferences>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -13,8 +13,7 @@ namespace MediaBrowser.Api
|
||||
/// <summary>
|
||||
/// Class GetDirectoryContents
|
||||
/// </summary>
|
||||
[Route("/Environment/DirectoryContents", "GET")]
|
||||
[Api(Description = "Gets the contents of a given directory in the file system")]
|
||||
[Route("/Environment/DirectoryContents", "GET", Summary = "Gets the contents of a given directory in the file system")]
|
||||
public class GetDirectoryContents : IReturn<List<FileSystemEntryInfo>>
|
||||
{
|
||||
/// <summary>
|
||||
@@ -46,8 +45,7 @@ namespace MediaBrowser.Api
|
||||
public bool IncludeHidden { get; set; }
|
||||
}
|
||||
|
||||
[Route("/Environment/NetworkShares", "GET")]
|
||||
[Api(Description = "Gets shares from a network device")]
|
||||
[Route("/Environment/NetworkShares", "GET", Summary = "Gets shares from a network device")]
|
||||
public class GetNetworkShares : IReturn<List<FileSystemEntryInfo>>
|
||||
{
|
||||
/// <summary>
|
||||
@@ -61,8 +59,7 @@ namespace MediaBrowser.Api
|
||||
/// <summary>
|
||||
/// Class GetDrives
|
||||
/// </summary>
|
||||
[Route("/Environment/Drives", "GET")]
|
||||
[Api(Description = "Gets available drives from the server's file system")]
|
||||
[Route("/Environment/Drives", "GET", Summary = "Gets available drives from the server's file system")]
|
||||
public class GetDrives : IReturn<List<FileSystemEntryInfo>>
|
||||
{
|
||||
}
|
||||
@@ -70,14 +67,12 @@ namespace MediaBrowser.Api
|
||||
/// <summary>
|
||||
/// Class GetNetworkComputers
|
||||
/// </summary>
|
||||
[Route("/Environment/NetworkDevices", "GET")]
|
||||
[Api(Description = "Gets a list of devices on the network")]
|
||||
[Route("/Environment/NetworkDevices", "GET", Summary = "Gets a list of devices on the network")]
|
||||
public class GetNetworkDevices : IReturn<List<FileSystemEntryInfo>>
|
||||
{
|
||||
}
|
||||
|
||||
[Route("/Environment/ParentPath", "GET")]
|
||||
[Api(Description = "Gets the parent path of a given path")]
|
||||
[Route("/Environment/ParentPath", "GET", Summary = "Gets the parent path of a given path")]
|
||||
public class GetParentPath : IReturn<string>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Globalization;
|
||||
using MediaBrowser.Controller.Dto;
|
||||
using MediaBrowser.Controller.Dto;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Controller.Persistence;
|
||||
@@ -7,6 +6,7 @@ using MediaBrowser.Model.Dto;
|
||||
using ServiceStack;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
@@ -15,8 +15,7 @@ namespace MediaBrowser.Api
|
||||
/// <summary>
|
||||
/// Class GetSimilarGames
|
||||
/// </summary>
|
||||
[Route("/Games/{Id}/Similar", "GET")]
|
||||
[Api(Description = "Finds games similar to a given game.")]
|
||||
[Route("/Games/{Id}/Similar", "GET", Summary = "Finds games similar to a given game.")]
|
||||
public class GetSimilarGames : BaseGetSimilarItemsFromItem
|
||||
{
|
||||
}
|
||||
@@ -24,8 +23,7 @@ namespace MediaBrowser.Api
|
||||
/// <summary>
|
||||
/// Class GetGameSystemSummaries
|
||||
/// </summary>
|
||||
[Route("/Games/SystemSummaries", "GET")]
|
||||
[Api(Description = "Finds games similar to a given game.")]
|
||||
[Route("/Games/SystemSummaries", "GET", Summary = "Finds games similar to a given game.")]
|
||||
public class GetGameSystemSummaries : IReturn<List<GameSystemSummary>>
|
||||
{
|
||||
/// <summary>
|
||||
@@ -39,8 +37,7 @@ namespace MediaBrowser.Api
|
||||
/// <summary>
|
||||
/// Class GetGameSystemSummaries
|
||||
/// </summary>
|
||||
[Route("/Games/PlayerIndex", "GET")]
|
||||
[Api(Description = "Gets an index of players (1-x) and the number of games listed under each")]
|
||||
[Route("/Games/PlayerIndex", "GET", Summary = "Gets an index of players (1-x) and the number of games listed under each")]
|
||||
public class GetPlayerIndex : IReturn<List<ItemIndex>>
|
||||
{
|
||||
/// <summary>
|
||||
@@ -117,7 +114,7 @@ namespace MediaBrowser.Api
|
||||
}
|
||||
|
||||
private static readonly CultureInfo UsCulture = new CultureInfo("en-US");
|
||||
|
||||
|
||||
public object Get(GetPlayerIndex request)
|
||||
{
|
||||
var games = GetAllLibraryItems(request.UserId, _userManager, _libraryManager)
|
||||
|
||||
@@ -17,23 +17,22 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||
/// <summary>
|
||||
/// Class GetAudioStream
|
||||
/// </summary>
|
||||
[Route("/Audio/{Id}/stream.mp3", "GET")]
|
||||
[Route("/Audio/{Id}/stream.wma", "GET")]
|
||||
[Route("/Audio/{Id}/stream.aac", "GET")]
|
||||
[Route("/Audio/{Id}/stream.flac", "GET")]
|
||||
[Route("/Audio/{Id}/stream.ogg", "GET")]
|
||||
[Route("/Audio/{Id}/stream.oga", "GET")]
|
||||
[Route("/Audio/{Id}/stream.webm", "GET")]
|
||||
[Route("/Audio/{Id}/stream", "GET")]
|
||||
[Route("/Audio/{Id}/stream.mp3", "HEAD")]
|
||||
[Route("/Audio/{Id}/stream.wma", "HEAD")]
|
||||
[Route("/Audio/{Id}/stream.aac", "HEAD")]
|
||||
[Route("/Audio/{Id}/stream.flac", "HEAD")]
|
||||
[Route("/Audio/{Id}/stream.ogg", "HEAD")]
|
||||
[Route("/Audio/{Id}/stream.oga", "HEAD")]
|
||||
[Route("/Audio/{Id}/stream.webm", "HEAD")]
|
||||
[Route("/Audio/{Id}/stream", "HEAD")]
|
||||
[Api(Description = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.mp3", "GET", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.wma", "GET", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.aac", "GET", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.flac", "GET", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.ogg", "GET", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.oga", "GET", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.webm", "GET", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream", "GET", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.mp3", "HEAD", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.wma", "HEAD", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.aac", "HEAD", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.flac", "HEAD", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.ogg", "HEAD", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.oga", "HEAD", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream.webm", "HEAD", Summary = "Gets an audio stream")]
|
||||
[Route("/Audio/{Id}/stream", "HEAD", Summary = "Gets an audio stream")]
|
||||
public class GetAudioStream : StreamRequest
|
||||
{
|
||||
|
||||
@@ -44,7 +43,8 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||
/// </summary>
|
||||
public class AudioService : BaseProgressiveStreamingService
|
||||
{
|
||||
public AudioService(IServerConfigurationManager serverConfig, IUserManager userManager, ILibraryManager libraryManager, IIsoManager isoManager, IMediaEncoder mediaEncoder, IDtoService dtoService, IFileSystem fileSystem, IItemRepository itemRepository, ILiveTvManager liveTvManager, IEncodingManager encodingManager, IDlnaManager dlnaManager, IHttpClient httpClient, IImageProcessor imageProcessor) : base(serverConfig, userManager, libraryManager, isoManager, mediaEncoder, dtoService, fileSystem, itemRepository, liveTvManager, encodingManager, dlnaManager, httpClient, imageProcessor)
|
||||
public AudioService(IServerConfigurationManager serverConfig, IUserManager userManager, ILibraryManager libraryManager, IIsoManager isoManager, IMediaEncoder mediaEncoder, IDtoService dtoService, IFileSystem fileSystem, IItemRepository itemRepository, ILiveTvManager liveTvManager, IEncodingManager encodingManager, IDlnaManager dlnaManager, IHttpClient httpClient, IImageProcessor imageProcessor)
|
||||
: base(serverConfig, userManager, libraryManager, isoManager, mediaEncoder, dtoService, fileSystem, itemRepository, liveTvManager, encodingManager, dlnaManager, httpClient, imageProcessor)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -20,9 +20,8 @@ namespace MediaBrowser.Api.UserLibrary
|
||||
/// <summary>
|
||||
/// Class GetItems
|
||||
/// </summary>
|
||||
[Route("/Items", "GET")]
|
||||
[Route("/Users/{UserId}/Items", "GET")]
|
||||
[Api(Description = "Gets items based on a query.")]
|
||||
[Route("/Items", "GET", Summary = "Gets items based on a query.")]
|
||||
[Route("/Users/{UserId}/Items", "GET", Summary = "Gets items based on a query.")]
|
||||
public class GetItems : BaseItemsRequest, IReturn<ItemsResult>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user