jellyfin/MediaBrowser.Controller/SyncPlay/PlaybackRequests/SetPlaylistItemGroupRequest.cs

28 lines
928 B
C#
Raw Normal View History

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