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