Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BiometricHeaderTemplate.cs
2{
7 {
12 : base([])
13 {
14 }
15
32 : base(Value)
33 {
34 this.HeaderVersion = HeaderVersion;
35 this.BiometricType = BiometricType;
36 this.BiometricSubType = BiometricSubType;
37 this.CreationDateAndTime = CreationDateAndTime;
38 this.ValidityPeriod = ValidityPeriod;
39 this.CreatorPid = CreatorPid;
40 this.FormatOwner = FormatOwner;
41 this.FormatType = FormatType;
42 }
43
47 public override ushort Tag => 0xa1;
48
53
58
63
68
73
77 public CreatorPid? CreatorPid { get; }
78
82 public FormatOwner? FormatOwner { get; }
83
87 public FormatType? FormatType { get; }
88
95 public override IDataObject Create(byte[] Value, IDataObject[] Inner, TravelDocumentsClient Client)
96 {
102 CreatorPid? CreatorPid = null;
103 FormatOwner? FormatOwner = null;
104 FormatType? FormatType = null;
105
106 foreach (IDataObject Object in Inner)
107 {
108 if (Object is HeaderVersion HeaderVersion2)
109 HeaderVersion = HeaderVersion2;
110 else if (Object is BiometricType BiometricType2)
111 BiometricType = BiometricType2;
112 else if (Object is BiometricSubType BiometricSubType2)
113 BiometricSubType = BiometricSubType2;
114 else if (Object is CreationDateAndTime CreationDateAndTime2)
115 CreationDateAndTime = CreationDateAndTime2;
116 else if (Object is ValidityPeriod ValidityPeriod2)
117 ValidityPeriod = ValidityPeriod2;
118 else if (Object is CreatorPid CreatorPid2)
119 CreatorPid = CreatorPid2;
120 else if (Object is FormatOwner FormatOwner2)
121 FormatOwner = FormatOwner2;
122 else if (Object is FormatType FormatType2)
123 FormatType = FormatType2;
124 }
125
128 }
129 }
130}
Biometric Header Template. Reference: §4.7.2.1, EF.COM, ICAO Doc 9303-10, Table 44.
BiometricHeaderTemplate(byte[] Value, HeaderVersion? HeaderVersion, BiometricType? BiometricType, BiometricSubType? BiometricSubType, CreationDateAndTime? CreationDateAndTime, ValidityPeriod? ValidityPeriod, CreatorPid? CreatorPid, FormatOwner? FormatOwner, FormatType? FormatType)
Biometric Header Template. Reference: §4.7.2.1, EF.COM, ICAO Doc 9303-10, Table 44.
override IDataObject Create(byte[] Value, IDataObject[] Inner, TravelDocumentsClient Client)
Creates a parsed instance of the data object.
BiometricHeaderTemplate()
Biometric Header Template. Reference: §4.7.2.1, EF.COM, ICAO Doc 9303-10, Table 44.
Abstract base class for data objects that contain nested data objects.