21 lines
328 B
C#
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;
|
|
}
|
|
}
|