You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
866 B
26 lines
866 B
using Jellyfin.Api.Auth.DefaultAuthorizationPolicy;
|
|
using Jellyfin.Data.Enums;
|
|
|
|
namespace Jellyfin.Api.Auth.SyncPlayAccessPolicy
|
|
{
|
|
/// <summary>
|
|
/// The default authorization requirement.
|
|
/// </summary>
|
|
public class SyncPlayAccessRequirement : DefaultAuthorizationRequirement
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SyncPlayAccessRequirement"/> class.
|
|
/// </summary>
|
|
/// <param name="requiredAccess">A value of <see cref="SyncPlayAccessRequirementType"/>.</param>
|
|
public SyncPlayAccessRequirement(SyncPlayAccessRequirementType requiredAccess)
|
|
{
|
|
RequiredAccess = requiredAccess;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the required SyncPlay access.
|
|
/// </summary>
|
|
public SyncPlayAccessRequirementType RequiredAccess { get; }
|
|
}
|
|
}
|