using System.Threading; using MediaBrowser.Controller.Session; using MediaBrowser.Model.SyncPlay; namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests { /// /// Class NextItemGroupRequest. /// public class NextItemGroupRequest : AbstractPlaybackRequest { /// /// Initializes a new instance of the class. /// /// The playing item identifier. public NextItemGroupRequest(string playlistItemId) { PlaylistItemId = playlistItemId; } /// /// Gets the playing item identifier. /// /// The playing item identifier. public string PlaylistItemId { get; } /// public override PlaybackRequestType Action { get; } = PlaybackRequestType.NextItem; /// public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken) { state.HandleRequest(context, state.Type, this, session, cancellationToken); } } }