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