Files
Pilz/Pilz.Net/Api/ApiAuthCheckEventArgs.cs
2024-08-16 06:59:39 +02:00

21 lines
328 B
C#

namespace Pilz.Net.Api;
public record class ApiAuthCheckEventArgs(string AuthKey)
{
private bool hasDenyed;
public bool Valid { get; set; }
public void Deny()
{
Valid = false;
hasDenyed = true;
}
public void Permit()
{
if (!hasDenyed)
Valid = true;
}
}