Skip to content

Commit 60706b9

Browse files
Merge pull request #286 from regulaforensics/86ba574c
Commit: 86ba574c
2 parents c54c649 + f5cc2cb commit 60706b9

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

src/Regula.DocumentReader.WebClient/Model/DatabaseDocument.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ protected DatabaseDocument() { }
6161
/// <param name="year">The year when the document was issued..</param>
6262
/// <param name="sovereignty">Guardian country..</param>
6363
/// <param name="deprecated">Whether the document is no longer in circulation..</param>
64-
public DatabaseDocument(bool barcodeFields = default, string country = default, string createad = default, DocumentType docType = default, string document = default, bool graphicFields = default, int id = default, bool mrz = default, string? region = default, bool rfidChip = default, bool textFields = default, string updated = default, string? year = default, string? sovereignty = default, bool? deprecated = default)
64+
/// <param name="icaoCode">ICAO country code..</param>
65+
/// <param name="docCodes">Document codes..</param>
66+
public DatabaseDocument(bool barcodeFields = default, string country = default, string createad = default, DocumentType docType = default, string document = default, bool graphicFields = default, int id = default, bool mrz = default, string? region = default, bool rfidChip = default, bool textFields = default, string updated = default, string? year = default, string? sovereignty = default, bool? deprecated = default, string? icaoCode = default, string? docCodes = default)
6567
{
6668
this.BarcodeFields = barcodeFields;
6769
// to ensure "country" is required (not null)
@@ -98,6 +100,8 @@ public DatabaseDocument(bool barcodeFields = default, string country = default,
98100
this.Year = year;
99101
this.Sovereignty = sovereignty;
100102
this.Deprecated = deprecated;
103+
this.IcaoCode = icaoCode;
104+
this.DocCodes = docCodes;
101105
}
102106

103107
/// <summary>
@@ -198,6 +202,20 @@ public DatabaseDocument(bool barcodeFields = default, string country = default,
198202
[DataMember(Name = "deprecated", EmitDefaultValue = false)]
199203
public bool? Deprecated { get; set; }
200204

205+
/// <summary>
206+
/// ICAO country code.
207+
/// </summary>
208+
/// <value>ICAO country code.</value>
209+
[DataMember(Name = "icao_code", EmitDefaultValue = false)]
210+
public string? IcaoCode { get; set; }
211+
212+
/// <summary>
213+
/// Document codes.
214+
/// </summary>
215+
/// <value>Document codes.</value>
216+
[DataMember(Name = "doc_codes", EmitDefaultValue = false)]
217+
public string? DocCodes { get; set; }
218+
201219
/// <summary>
202220
/// Returns the string presentation of the object
203221
/// </summary>
@@ -221,6 +239,8 @@ public override string ToString()
221239
sb.Append(" Year: ").Append(Year).Append("\n");
222240
sb.Append(" Sovereignty: ").Append(Sovereignty).Append("\n");
223241
sb.Append(" Deprecated: ").Append(Deprecated).Append("\n");
242+
sb.Append(" IcaoCode: ").Append(IcaoCode).Append("\n");
243+
sb.Append(" DocCodes: ").Append(DocCodes).Append("\n");
224244
sb.Append("}\n");
225245
return sb.ToString();
226246
}

src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public EncryptedRCLItem(byte[] encryptedRCL = default)
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@6f2a71c9</example>
59+
<example>[B@2e99d5e7</example>
6060
*/
6161
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] EncryptedRCL { get; set; }

src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public EncryptedRCLResult(byte[] encryptedRCL = default, int? bufLength = defaul
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@6f2a71c9</example>
65+
<example>[B@2e99d5e7</example>
6666
*/
6767
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] EncryptedRCL { get; set; }

src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public LicenseItem(byte[] license = default)
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@3836c545</example>
59+
<example>[B@7696d06c</example>
6060
*/
6161
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] License { get; set; }

src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public LicenseResult(byte[] license = default, int? bufLength = default, int? li
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@3836c545</example>
65+
<example>[B@7696d06c</example>
6666
*/
6767
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] License { get; set; }

0 commit comments

Comments
 (0)