Ejemplo n.º 1
0
		public DocumentData ReadDocumentData()
		{
			var nativeDocumentData = new groupSD_DOCUMENT_DATA();
			var nativeResult = NativeMethods.sdReadDocumentData(ref nativeDocumentData);
			CheckNativeResult(nativeResult);

			var result = DocumentData.Transcribe(nativeDocumentData);

			return result;
		}
Ejemplo n.º 2
0
		internal static DocumentData Transcribe(groupSD_DOCUMENT_DATA nativeDocumentData)
		{
			var result = new DocumentData();

			result.AuthorityIssuing = nativeDocumentData.authorityIssuing;
			result.CompetentAuthority = nativeDocumentData.competentAuthority;
			result.ExpiryDate = nativeDocumentData.expiryDate;
			result.IssuingDate = nativeDocumentData.issuingDate;
			result.SerialNumber = nativeDocumentData.serialNumber;
			result.StateIssuing = nativeDocumentData.stateIssuing;
			result.UnambiguousNumber = nativeDocumentData.unambiguousNumber;
			
			return result;
		}