common/Hardware/Common.Hardware.SIRT/Parameters/PamTimeout.cs
2026-04-23 17:50:07 +02:00

31 lines
1.0 KiB
C#

namespace Common.Hardware.SIRT.Parameters
{
public class PamTimeout
{
public PamTimeout() => this.Minutes = 0;
private PamTimeout(byte minutes) => this.Minutes = minutes;
/// <summary>
/// <list>
/// <item>
/// <term>value == 0</term>
/// <description>PAM will never automatically deleted</description>
/// </item>
/// <item>
/// <term>value != 0</term>
/// <description>duration after a PAM will be automatically deleted out of PAM-Pool, if no other rule deletes entry before</description>
/// </item>
/// </list>
/// <para>Several bits at parameter P81-1 or P81-2 may delete entry at PAM-Pool before 5 minutes elapsed. </para>
/// </summary>
public byte Minutes { get; set; }
public static implicit operator byte(PamTimeout param)
=> param.Minutes;
public static implicit operator PamTimeout(byte _byte)
=> new PamTimeout(_byte);
}
}