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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected DocVisualExtendedField() { }
/// <param name="stringsCount">Number of StringsResult array elements (required).</param>
/// <param name="stringsResult">Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. (required).</param>
/// <param name="bufLength">Buf_Text text string length (required).</param>
/// <param name="bufText">Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by &#39;^&#39; (required).</param>
/// <param name="bufText">Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by &#39;^&#39;.</param>
/// <param name="fieldMask">fieldMask.</param>
/// <param name="validity">validity.</param>
/// <param name="inComparison">inComparison.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected EncryptedRCLItem() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@1c224bac</example>
<example>[B@1f89ae0</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@1c224bac</example>
<example>[B@1f89ae0</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 @@ protected LicenseItem() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@4333699a</example>
<example>[B@1a81e6d9</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 @@ protected LicenseResult() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@4333699a</example>
<example>[B@1a81e6d9</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 @@ -49,7 +49,7 @@ protected RFIDDocVisualExtendedField() { }
/// <param name="stringsCount">Number of StringsResult array elements (required).</param>
/// <param name="stringsResult">Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. (required).</param>
/// <param name="bufLength">Buf_Text text string length (required).</param>
/// <param name="bufText">Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by &#39;^&#39; (required).</param>
/// <param name="bufText">Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by &#39;^&#39;.</param>
/// <param name="fieldMask">fieldMask.</param>
/// <param name="validity">validity.</param>
/// <param name="inComparison">inComparison.</param>
Expand Down
13 changes: 4 additions & 9 deletions src/Regula.DocumentReader.WebClient/Model/RfidSessionData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected RfidSessionData() { }
/// <param name="rootFiles">List of containers to store information about the read files of the root Master File (required).</param>
/// <param name="totalBytesSent">Total number of bytes transmitted to the RFID-chip during the whole session (required).</param>
/// <param name="totalBytesReceived">Total number of bytes received from the RFID-chip during the whole session (required).</param>
/// <param name="sessionKey">sessionKey (required).</param>
/// <param name="sessionKey">sessionKey.</param>
/// <param name="sessionTerminal">sessionTerminal (required).</param>
/// <param name="sessionProcedure">sessionProcedure (required).</param>
/// <param name="securityObjects">List of containers to store information about the detected document security objects (required).</param>
Expand Down Expand Up @@ -105,12 +105,6 @@ protected RfidSessionData() { }
this.RootFiles = rootFiles;
this.TotalBytesSent = totalBytesSent;
this.TotalBytesReceived = totalBytesReceived;
// to ensure "sessionKey" is required (not null)
if (sessionKey == null)
{
throw new ArgumentNullException("sessionKey is a required property for RfidSessionData and cannot be null");
}
this.SessionKey = sessionKey;
// to ensure "sessionTerminal" is required (not null)
if (sessionTerminal == null)
{
Expand All @@ -128,6 +122,7 @@ protected RfidSessionData() { }
this.SDKVersion = sDKVersion;
this.DriverVersion = driverVersion;
this.FirmwareVersion = firmwareVersion;
this.SessionKey = sessionKey;
this.Status = status;
}

Expand Down Expand Up @@ -210,8 +205,8 @@ protected RfidSessionData() { }
/// <summary>
/// Gets or Sets SessionKey
/// </summary>
[DataMember(Name = "Session_key", IsRequired = true, EmitDefaultValue = true)]
public RfidAccessKey SessionKey { get; set; }
[DataMember(Name = "Session_key", EmitDefaultValue = false)]
public RfidAccessKey? SessionKey { get; set; }

/// <summary>
/// Gets or Sets SessionTerminal
Expand Down
14 changes: 13 additions & 1 deletion src/Regula.DocumentReader.WebClient/Model/Source.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,19 @@ public enum Source
/// Enum EXTERNAL for value: EXTERNAL
/// </summary>
[EnumMember(Value = "EXTERNAL")]
EXTERNAL = 6
EXTERNAL = 6,

/// <summary>
/// Enum LIVE for value: LIVE
/// </summary>
[EnumMember(Value = "LIVE")]
LIVE = 7,

/// <summary>
/// Enum FINGERPRINT for value: FINGERPRINT
/// </summary>
[EnumMember(Value = "FINGERPRINT")]
FINGERPRINT = 8
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected VisualExtendedFieldItem() { }
/// <param name="stringsCount">Number of StringsResult array elements (required).</param>
/// <param name="stringsResult">Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. (required).</param>
/// <param name="bufLength">Buf_Text text string length (required).</param>
/// <param name="bufText">Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by &#39;^&#39; (required).</param>
/// <param name="bufText">Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by &#39;^&#39;.</param>
/// <param name="fieldMask">fieldMask.</param>
/// <param name="validity">validity.</param>
/// <param name="inComparison">inComparison.</param>
Expand All @@ -81,11 +81,6 @@ protected VisualExtendedFieldItem() { }
}
this.StringsResult = stringsResult;
this.BufLength = bufLength;
// to ensure "bufText" is required (not null)
if (bufText == null)
{
throw new ArgumentNullException("bufText is a required property for VisualExtendedFieldItem and cannot be null");
}
this.BufText = bufText;
this.FieldMask = fieldMask;
this.Validity = validity;
Expand Down Expand Up @@ -127,8 +122,8 @@ protected VisualExtendedFieldItem() { }
/// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by &#39;^&#39;
/// </summary>
/// <value>Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by &#39;^&#39;</value>
[DataMember(Name = "Buf_Text", IsRequired = true, EmitDefaultValue = true)]
public string BufText { get; set; }
[DataMember(Name = "Buf_Text", EmitDefaultValue = false)]
public string? BufText { get; set; }

/// <summary>
/// Gets or Sets FieldMask
Expand Down
Loading