39 lines
1.6 KiB
C#
39 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace HikvisionAttendanceService;
|
|
|
|
/// <summary>JSON-serializable result of exporting face + fingerprint templates for one user (SDK key = card number / employee string).</summary>
|
|
internal sealed class UserTemplateExportPayload
|
|
{
|
|
public string exportedAtUtc { get; set; } = "";
|
|
public string deviceId { get; set; } = "";
|
|
public string cardNo { get; set; } = "";
|
|
/// <summary>Documents the actual SDK calls used in this build.</summary>
|
|
public string sdkImplementationNote { get; set; } =
|
|
"Face/Fingerprints exported via NET_DVR_StartRemoteConfig (preferred), with ISAPI fallback via NET_DVR_STDXMLConfig.";
|
|
/// <summary>True when device capabilities indicate enrolled face search/readback is supported.</summary>
|
|
public bool? faceReadbackSupported { get; set; }
|
|
|
|
public FaceTemplateExportItem face { get; set; } = new FaceTemplateExportItem();
|
|
public List<FingerprintTemplateExportItem> fingerprints { get; set; } = new List<FingerprintTemplateExportItem>();
|
|
}
|
|
|
|
internal sealed class FaceTemplateExportItem
|
|
{
|
|
public bool attempted { get; set; }
|
|
public bool present { get; set; }
|
|
public int byteLength { get; set; }
|
|
public string dataBase64 { get; set; } = "";
|
|
public string error { get; set; } = "";
|
|
}
|
|
|
|
internal sealed class FingerprintTemplateExportItem
|
|
{
|
|
public int fingerId { get; set; }
|
|
public bool attempted { get; set; }
|
|
public bool present { get; set; }
|
|
public int byteLength { get; set; }
|
|
public string dataBase64 { get; set; } = "";
|
|
public string error { get; set; } = "";
|
|
}
|