using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Class SetRepeatModeGroupRequest.
///
public class SetRepeatModeGroupRequest : IGroupPlaybackRequest
{
///
/// Gets or sets the repeat mode.
///
/// The repeat mode.
public string Mode { get; set; }
///
public PlaybackRequestType Type { get; } = PlaybackRequestType.SetRepeatMode;
///
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.Type, this, session, cancellationToken);
}
}
}