using Jellyfin.Data.Enums;
using Microsoft.AspNetCore.Authorization;
namespace Jellyfin.Api.Auth.SyncPlayAccessPolicy
{
///
/// The default authorization requirement.
///
public class SyncPlayAccessRequirement : IAuthorizationRequirement
{
///
/// Initializes a new instance of the class.
///
/// A value of .
public SyncPlayAccessRequirement(SyncPlayAccess requiredAccess)
{
RequiredAccess = requiredAccess;
}
///
/// Initializes a new instance of the class.
///
public SyncPlayAccessRequirement()
{
RequiredAccess = null;
}
///
/// Gets the required SyncPlay access.
///
public SyncPlayAccess? RequiredAccess { get; }
}
}