using System.Collections.Generic; namespace HikvisionAttendanceService; /// JSON-serializable result of exporting face + fingerprint templates for one user (SDK key = card number / employee string). internal sealed class UserTemplateExportPayload { public string exportedAtUtc { get; set; } = ""; public string deviceId { get; set; } = ""; public string cardNo { get; set; } = ""; /// Documents the actual SDK calls used in this build. public string sdkImplementationNote { get; set; } = "Face/Fingerprints exported via NET_DVR_StartRemoteConfig (preferred), with ISAPI fallback via NET_DVR_STDXMLConfig."; public FaceTemplateExportItem face { get; set; } = new FaceTemplateExportItem(); public List fingerprints { get; set; } = new List(); } 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; } = ""; }