public DocumentData(EID_DOCUMENT_DATA nativeData) { DocumentRegistrationNumber = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.docRegNo)); DocumentType = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.documentType)); IssuingDate = Encoding.UTF8.GetString(nativeData.issuingDate); ExpiryDate = Encoding.UTF8.GetString(nativeData.expiryDate); IssuingAuthority = Encoding.UTF8.GetString(Util.TrimTrailingZeroes(nativeData.issuingAuthority)); }
public DocumentData ReadDocumentData() { EID_DOCUMENT_DATA nativeDocumentData = new EID_DOCUMENT_DATA(); int nativeResult = NativeMethods.EidReadDocumentData(ref nativeDocumentData); CheckNativeResult(nativeResult); DocumentData result = new DocumentData(nativeDocumentData); return result; }
internal static extern int EidReadDocumentData(ref EID_DOCUMENT_DATA pData);