Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/Regula.DocumentReader.WebClient/Model/DatabaseDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ protected DatabaseDocument() { }
/// <param name="year">The year when the document was issued..</param>
/// <param name="sovereignty">Guardian country..</param>
/// <param name="deprecated">Whether the document is no longer in circulation..</param>
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)
/// <param name="icaoCode">ICAO country code..</param>
/// <param name="docCodes">Document codes..</param>
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)
{
this.BarcodeFields = barcodeFields;
// to ensure "country" is required (not null)
Expand Down Expand Up @@ -98,6 +100,8 @@ public DatabaseDocument(bool barcodeFields = default, string country = default,
this.Year = year;
this.Sovereignty = sovereignty;
this.Deprecated = deprecated;
this.IcaoCode = icaoCode;
this.DocCodes = docCodes;
}

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

/// <summary>
/// ICAO country code.
/// </summary>
/// <value>ICAO country code.</value>
[DataMember(Name = "icao_code", EmitDefaultValue = false)]
public string? IcaoCode { get; set; }

/// <summary>
/// Document codes.
/// </summary>
/// <value>Document codes.</value>
[DataMember(Name = "doc_codes", EmitDefaultValue = false)]
public string? DocCodes { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -221,6 +239,8 @@ public override string ToString()
sb.Append(" Year: ").Append(Year).Append("\n");
sb.Append(" Sovereignty: ").Append(Sovereignty).Append("\n");
sb.Append(" Deprecated: ").Append(Deprecated).Append("\n");
sb.Append(" IcaoCode: ").Append(IcaoCode).Append("\n");
sb.Append(" DocCodes: ").Append(DocCodes).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public EncryptedRCLItem(byte[] encryptedRCL = default)
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@6f2a71c9</example>
<example>[B@2e99d5e7</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@6f2a71c9</example>
<example>[B@2e99d5e7</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down Expand Up @@ -105,7 +105,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 108 in src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'EncryptedRCLResult.BaseValidate(ValidationContext)' hides inherited member 'ResultItem.BaseValidate(ValidationContext)'. Use the new keyword if hiding was intended.
{
foreach (var x in base.BaseValidate(validationContext))
{
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public LicenseItem(byte[] license = default)
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@3836c545</example>
<example>[B@7696d06c</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public LicenseResult(byte[] license = default, int? bufLength = default, int? li
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@3836c545</example>
<example>[B@7696d06c</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Loading