12 public class BiometricReadResult
17 private BiometricReadResult()
44 public short Length {
get;
private set; }
49 public byte[] TemplateData {
get;
private set; }
55 internal static BiometricReadResult ParseData(ReadOnlySpan<byte> data)
57 var dataArray = data.ToArray();
59 var biometricResult =
new BiometricReadResult
67 Length =
Message.ConvertBytesToShort(dataArray.Skip(4).Take(2).ToArray(), true),
68 TemplateData = dataArray.Skip(6).ToArray()
71 return biometricResult;
77 var build =
new StringBuilder();
78 build.AppendLine($
"Reader Number: {ReaderNumber}");
79 build.AppendLine($
" Status: {Status}");
80 build.AppendLine($
" Type: {Type}");
81 build.AppendLine($
" Quality: {Quality}");
82 build.AppendLine($
" Length: {Length}");
84 return build.ToString();
A base message class for sending or replying.
override string ToString()
BiometricStatus Status
Gets the results of the PD performing the biometric scan.
BiometricType Type
Gets the type/body part that was scanned.
byte Quality
The scan quality with 0x00 as worse and 0x99 as best.
byte ReaderNumber
Gets the reader number 0=First Reader 1=Second Reader.
BiometricType
The body part that is to be scanned.
BiometricStatus
Results of the biometric scanning.