mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
30 lines
931 B
C#
30 lines
931 B
C#
using System.Threading;
|
|
using MediaBrowser.Model.SyncPlay;
|
|
using MediaBrowser.Controller.Session;
|
|
|
|
namespace MediaBrowser.Controller.SyncPlay
|
|
{
|
|
/// <summary>
|
|
/// Class PreviousTrackGroupRequest.
|
|
/// </summary>
|
|
public class PreviousTrackGroupRequest : IPlaybackGroupRequest
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the playing item id.
|
|
/// </summary>
|
|
/// <value>The playing item id.</value>
|
|
public string PlaylistItemId { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public PlaybackRequestType GetRequestType()
|
|
{
|
|
return PlaybackRequestType.PreviousTrack;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public void Apply(ISyncPlayStateContext context, ISyncPlayState state, SessionInfo session, CancellationToken cancellationToken)
|
|
{
|
|
state.HandleRequest(context, state.GetGroupState(), this, session, cancellationToken);
|
|
}
|
|
}
|
|
}
|