using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
{
///
/// Class SetShuffleModeGroupRequest.
///
public class SetShuffleModeGroupRequest : IGroupPlaybackRequest
{
///
/// Initializes a new instance of the class.
///
/// The shuffle mode.
public SetShuffleModeGroupRequest(GroupShuffleMode mode)
{
Mode = mode;
}
///
/// Gets the shuffle mode.
///
/// The shuffle mode.
public GroupShuffleMode Mode { get; }
///
public PlaybackRequestType Type { get; } = PlaybackRequestType.SetShuffleMode;
///
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.Type, this, session, cancellationToken);
}
}
}