jellyfin-server/MediaBrowser.Controller/SyncPlay/PlaybackRequests/NextTrackGroupRequest.cs

28 lines
878 B
C#
Raw Normal View History

using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay
{
/// <summary>
/// Class NextTrackGroupRequest.
/// </summary>
public class NextTrackGroupRequest : IGroupPlaybackRequest
{
/// <summary>
2020-10-21 14:42:57 +00:00
/// Gets or sets the playing item identifier.
/// </summary>
2020-10-21 14:42:57 +00:00
/// <value>The playing item identifier.</value>
public string PlaylistItemId { get; set; }
/// <inheritdoc />
public PlaybackRequestType Type { get; } = PlaybackRequestType.NextTrack;
/// <inheritdoc />
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.Type, this, session, cancellationToken);
}
}
}