mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 04:18:06 +02:00
Update SessionController.cs
This commit is contained in:
parent
4c6b60d69d
commit
81db323f88
1 changed files with 3 additions and 3 deletions
|
@ -155,13 +155,13 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <param name="startPositionTicks">The starting position of the first item.</param>
|
/// <param name="startPositionTicks">The starting position of the first item.</param>
|
||||||
/// <response code="204">Instruction sent to session.</response>
|
/// <response code="204">Instruction sent to session.</response>
|
||||||
/// <returns>A <see cref="NoContentResult"/>.</returns>
|
/// <returns>A <see cref="NoContentResult"/>.</returns>
|
||||||
[HttpPost("Sessions/{sessionId}/Playing/{command}")]
|
[HttpPost("Sessions/{sessionId}/Playing")]
|
||||||
[Authorize(Policy = Policies.DefaultAuthorization)]
|
[Authorize(Policy = Policies.DefaultAuthorization)]
|
||||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||||
public ActionResult Play(
|
public ActionResult Play(
|
||||||
[FromRoute, Required] string sessionId,
|
[FromRoute, Required] string sessionId,
|
||||||
[FromRoute, Required] PlayCommand command,
|
[FromRoute, Required] PlayCommand command,
|
||||||
[FromQuery] Guid[] itemIds,
|
[FromQuery] Guid itemIds,
|
||||||
[FromQuery] long? startPositionTicks)
|
[FromQuery] long? startPositionTicks)
|
||||||
{
|
{
|
||||||
var playRequest = new PlayRequest
|
var playRequest = new PlayRequest
|
||||||
|
@ -187,7 +187,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <param name="playstateRequest">The <see cref="PlaystateRequest"/>.</param>
|
/// <param name="playstateRequest">The <see cref="PlaystateRequest"/>.</param>
|
||||||
/// <response code="204">Playstate command sent to session.</response>
|
/// <response code="204">Playstate command sent to session.</response>
|
||||||
/// <returns>A <see cref="NoContentResult"/>.</returns>
|
/// <returns>A <see cref="NoContentResult"/>.</returns>
|
||||||
[HttpPost("Sessions/{sessionId}/Playing")]
|
[HttpPost("Sessions/{sessionId}/Playing/{command}")]
|
||||||
[Authorize(Policy = Policies.DefaultAuthorization)]
|
[Authorize(Policy = Policies.DefaultAuthorization)]
|
||||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||||
public ActionResult SendPlaystateCommand(
|
public ActionResult SendPlaystateCommand(
|
||||||
|
|
Loading…
Reference in a new issue