Files
laatzen/Common/Hardware/WaterMeter/eRegister/Common.Hardware.WaterMeter.eRegister/Features/ProvidePin.cs
T

30 lines
631 B
C#

namespace Common.Hardware.WaterMeter.eRegister.Features
{
using System;
public class ProvidePin : Pam
{
public ProvidePin() : base(6, ProvidePin)
{
}
public AuthLevel AuthLevel
{
get
{
var bytes = new byte[8];
Array.Copy(this.bytes, 1, bytes, 0, 5);
return (AuthLevel)BitConverter.ToUInt64(bytes, 0);
}
set
{
var bytes = BitConverter.GetBytes((UInt64)value);
Array.Copy(bytes, 1, this.bytes, 1, 5);
}
}
}
}