using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
{
///
/// Class SetShuffleModeGroupRequest.
///
public class SetShuffleModeGroupRequest : AbstractPlaybackRequest
{
///
/// 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 override PlaybackRequestType Action { get; } = PlaybackRequestType.SetShuffleMode;
///
public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.Type, this, session, cancellationToken);
}
}
}