using System.Threading;
using MediaBrowser.Model.SyncPlay;
using MediaBrowser.Controller.Session;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Class NextTrackGroupRequest.
///
public class NextTrackGroupRequest : IPlaybackGroupRequest
{
///
/// Gets or sets the playing item id.
///
/// The playing item id.
public string PlaylistItemId { get; set; }
///
public PlaybackRequestType GetRequestType()
{
return PlaybackRequestType.NextTrack;
}
///
public void Apply(ISyncPlayStateContext context, ISyncPlayState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.GetGroupState(), this, session, cancellationToken);
}
}
}