Skip to content
Closed
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 @@ -42,19 +42,14 @@ protected CertificateData() { }
/// </summary>
/// <param name="data">data (required).</param>
/// <param name="length">length (required).</param>
public CertificateData(string data = default(string), string length = default(string))
public CertificateData(string data = default(string), int length = default(int))
{
// to ensure "data" is required (not null)
if (data == null)
{
throw new ArgumentNullException("data is a required property for CertificateData and cannot be null");
}
this.Data = data;
// to ensure "length" is required (not null)
if (length == null)
{
throw new ArgumentNullException("length is a required property for CertificateData and cannot be null");
}
this.Length = length;
}

Expand All @@ -68,7 +63,7 @@ protected CertificateData() { }
/// Gets or Sets Length
/// </summary>
[DataMember(Name = "Length", IsRequired = true, EmitDefaultValue = true)]
public string Length { get; set; }
public int Length { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ protected DocVisualExtendedField() { }
/// Initializes a new instance of the <see cref="DocVisualExtendedField" /> class.
/// </summary>
/// <param name="fieldRect">fieldRect (required).</param>
/// <param name="fieldType">fieldType (required).</param>
/// <param name="wFieldType">wFieldType (required).</param>
/// <param name="fieldName">Field symbolic name (null-terminated string) (required).</param>
/// <param name="stringsCount">Number of StringsResult array elements (required).</param>
Expand All @@ -54,7 +53,7 @@ protected DocVisualExtendedField() { }
/// <param name="wLCID">wLCID.</param>
/// <param name="reserved2">reserved2.</param>
/// <param name="reserved3">reserved3.</param>
public DocVisualExtendedField(RectangleCoordinates fieldRect = default(RectangleCoordinates), int fieldType = default(int), TextFieldType wFieldType = default(TextFieldType), string fieldName = default(string), decimal stringsCount = default(decimal), List<StringRecognitionResult> stringsResult = default(List<StringRecognitionResult>), decimal bufLength = default(decimal), string bufText = default(string), string fieldMask = default(string), int validity = default(int), int inComparison = default(int), int wLCID = default(int), int reserved2 = default(int), int reserved3 = default(int)) : base(fieldType, wFieldType, fieldName, stringsCount, stringsResult, bufLength, bufText, fieldMask, validity, inComparison, wLCID, reserved2, reserved3)
public DocVisualExtendedField(RectangleCoordinates fieldRect = default(RectangleCoordinates), TextFieldType wFieldType = default(TextFieldType), string fieldName = default(string), decimal stringsCount = default(decimal), List<StringRecognitionResult> stringsResult = default(List<StringRecognitionResult>), decimal bufLength = default(decimal), string bufText = default(string), string fieldMask = default(string), int validity = default(int), int inComparison = default(int), int wLCID = default(int), int reserved2 = default(int), int reserved3 = default(int)) : base(wFieldType, fieldName, stringsCount, stringsResult, bufLength, bufText, fieldMask, validity, inComparison, wLCID, reserved2, reserved3)
{
// to ensure "fieldRect" is required (not null)
if (fieldRect == null)
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@48386ddd</example>
<example>[B@5022ed18</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@48386ddd</example>
<example>[B@5022ed18</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.

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
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public RecognitionParams WithLog(bool log)
return this;
}

public RecognitionParams WithProcessAuth(AuthenticityResultType processAuth)
public RecognitionParams WithProcessAuth(long processAuth)
{
ProcessAuth = processAuth;
return this;
Expand Down
11 changes: 1 addition & 10 deletions src/Regula.DocumentReader.WebClient/Model/FiberItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ protected FiberItem() { }
/// <param name="length">Fibers length value for located areas (in pixels) (required).</param>
/// <param name="area">Fibers value for areas (in pixels) (required).</param>
/// <param name="colorValues">Fibers color value (required).</param>
/// <param name="errorCode">errorCode.</param>
public FiberItem(int rectCount = default(int), int expectedCount = default(int), Light? lightValue = default(Light?), int lightDisp = default(int), List<RectangleCoordinates> rectArray = default(List<RectangleCoordinates>), List<int> width = default(List<int>), List<int> length = default(List<int>), List<int> area = default(List<int>), List<int> colorValues = default(List<int>), int errorCode = default(int))
public FiberItem(int rectCount = default(int), int expectedCount = default(int), Light? lightValue = default(Light?), int lightDisp = default(int), List<RectangleCoordinates> rectArray = default(List<RectangleCoordinates>), List<int> width = default(List<int>), List<int> length = default(List<int>), List<int> area = default(List<int>), List<int> colorValues = default(List<int>))
{
this.RectCount = rectCount;
this.ExpectedCount = expectedCount;
Expand Down Expand Up @@ -92,7 +91,6 @@ protected FiberItem() { }
this.ColorValues = colorValues;
this.LightValue = lightValue;
this.LightDisp = lightDisp;
this.ErrorCode = errorCode;
}

/// <summary>
Expand Down Expand Up @@ -154,12 +152,6 @@ protected FiberItem() { }
[DataMember(Name = "ColorValues", IsRequired = true, EmitDefaultValue = true)]
public List<int> ColorValues { get; set; }

/// <summary>
/// Gets or Sets ErrorCode
/// </summary>
[DataMember(Name = "ErrorCode", EmitDefaultValue = false)]
public int? ErrorCode { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -177,7 +169,6 @@ public override string ToString()
sb.Append(" Length: ").Append(Length).Append("\n");
sb.Append(" Area: ").Append(Area).Append("\n");
sb.Append(" ColorValues: ").Append(ColorValues).Append("\n");
sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
11 changes: 1 addition & 10 deletions src/Regula.DocumentReader.WebClient/Model/FiberResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@
/// <param name="length">Fibers length value for located areas (in pixels) (required).</param>
/// <param name="area">Fibers value for areas (in pixels) (required).</param>
/// <param name="colorValues">Fibers color value (required).</param>
/// <param name="errorCode">errorCode.</param>
/// <param name="type">type (required) (default to AuthenticityResultType.UV_FIBERS).</param>
/// <param name="elementResult">elementResult.</param>
/// <param name="elementDiagnose">elementDiagnose.</param>
/// <param name="percentValue">percentValue.</param>
public FiberResult(int rectCount = default(int), int expectedCount = default(int), Light? lightValue = default(Light?), int lightDisp = default(int), List<RectangleCoordinates> rectArray = default(List<RectangleCoordinates>), List<int> width = default(List<int>), List<int> length = default(List<int>), List<int> area = default(List<int>), List<int> colorValues = default(List<int>), int errorCode = default(int), AuthenticityResultType type = AuthenticityResultType.UV_FIBERS, CheckResult? elementResult = default(CheckResult?), CheckDiagnose? elementDiagnose = default(CheckDiagnose?), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue)
public FiberResult(int rectCount = default(int), int expectedCount = default(int), Light? lightValue = default(Light?), int lightDisp = default(int), List<RectangleCoordinates> rectArray = default(List<RectangleCoordinates>), List<int> width = default(List<int>), List<int> length = default(List<int>), List<int> area = default(List<int>), List<int> colorValues = default(List<int>), AuthenticityResultType type = AuthenticityResultType.UV_FIBERS, CheckResult? elementResult = default(CheckResult?), CheckDiagnose? elementDiagnose = default(CheckDiagnose?), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue)
{
this.RectCount = rectCount;
this.ExpectedCount = expectedCount;
Expand Down Expand Up @@ -97,7 +96,6 @@
this.ColorValues = colorValues;
this.LightValue = lightValue;
this.LightDisp = lightDisp;
this.ErrorCode = errorCode;
}

/// <summary>
Expand Down Expand Up @@ -159,12 +157,6 @@
[DataMember(Name = "ColorValues", IsRequired = true, EmitDefaultValue = true)]
public List<int> ColorValues { get; set; }

/// <summary>
/// Gets or Sets ErrorCode
/// </summary>
[DataMember(Name = "ErrorCode", EmitDefaultValue = false)]
public int? ErrorCode { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -183,7 +175,6 @@
sb.Append(" Length: ").Append(Length).Append("\n");
sb.Append(" Area: ").Append(Area).Append("\n");
sb.Append(" ColorValues: ").Append(ColorValues).Append("\n");
sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -212,7 +203,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 206 in src/Regula.DocumentReader.WebClient/Model/FiberResult.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'FiberResult.BaseValidate(ValidationContext)' hides inherited member 'AuthenticityCheckResultItem.BaseValidate(ValidationContext)'. Use the new keyword if hiding was intended.
{
foreach (var x in base.BaseValidate(validationContext))
{
Expand Down
11 changes: 1 addition & 10 deletions src/Regula.DocumentReader.WebClient/Model/IdentItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ protected IdentItem() { }
/// <param name="etalonImage">etalonImage (required).</param>
/// <param name="areaList">areaList.</param>
/// <param name="elementID">elementID.</param>
/// <param name="result">result.</param>
public IdentItem(SecurityFeatureType elementType = default(SecurityFeatureType), Light lightIndex = default(Light), RectangleCoordinates area = default(RectangleCoordinates), ImageData image = default(ImageData), ImageData etalonImage = default(ImageData), AreaContainer areaList = default(AreaContainer), int elementID = default(int), int result = default(int))
public IdentItem(SecurityFeatureType elementType = default(SecurityFeatureType), Light lightIndex = default(Light), RectangleCoordinates area = default(RectangleCoordinates), ImageData image = default(ImageData), ImageData etalonImage = default(ImageData), AreaContainer areaList = default(AreaContainer), int elementID = default(int))
{
this.ElementType = elementType;
this.LightIndex = lightIndex;
Expand All @@ -79,7 +78,6 @@ protected IdentItem() { }
this.Area = area;
this.AreaList = areaList;
this.ElementID = elementID;
this.Result = result;
}

/// <summary>
Expand Down Expand Up @@ -112,12 +110,6 @@ protected IdentItem() { }
[DataMember(Name = "ElementID", EmitDefaultValue = false)]
public int? ElementID { get; set; }

/// <summary>
/// Gets or Sets Result
/// </summary>
[DataMember(Name = "Result", EmitDefaultValue = false)]
public int? Result { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -133,7 +125,6 @@ public override string ToString()
sb.Append(" EtalonImage: ").Append(EtalonImage).Append("\n");
sb.Append(" AreaList: ").Append(AreaList).Append("\n");
sb.Append(" ElementID: ").Append(ElementID).Append("\n");
sb.Append(" Result: ").Append(Result).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
11 changes: 1 addition & 10 deletions src/Regula.DocumentReader.WebClient/Model/IdentResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@ protected IdentResult() { }
/// <param name="etalonImage">etalonImage (required).</param>
/// <param name="areaList">areaList.</param>
/// <param name="elementID">elementID.</param>
/// <param name="result">result.</param>
/// <param name="type">type (required) (default to AuthenticityResultType.IMAGE_PATTERN).</param>
/// <param name="elementResult">elementResult.</param>
/// <param name="elementDiagnose">elementDiagnose.</param>
/// <param name="percentValue">percentValue.</param>
public IdentResult(SecurityFeatureType elementType = default(SecurityFeatureType), Light lightIndex = default(Light), RectangleCoordinates area = default(RectangleCoordinates), ImageData image = default(ImageData), ImageData etalonImage = default(ImageData), AreaContainer areaList = default(AreaContainer), int elementID = default(int), int result = default(int), AuthenticityResultType type = AuthenticityResultType.IMAGE_PATTERN, CheckResult? elementResult = default(CheckResult?), CheckDiagnose? elementDiagnose = default(CheckDiagnose?), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue)
public IdentResult(SecurityFeatureType elementType = default(SecurityFeatureType), Light lightIndex = default(Light), RectangleCoordinates area = default(RectangleCoordinates), ImageData image = default(ImageData), ImageData etalonImage = default(ImageData), AreaContainer areaList = default(AreaContainer), int elementID = default(int), AuthenticityResultType type = AuthenticityResultType.IMAGE_PATTERN, CheckResult? elementResult = default(CheckResult?), CheckDiagnose? elementDiagnose = default(CheckDiagnose?), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue)
{
this.ElementType = elementType;
this.LightIndex = lightIndex;
Expand All @@ -84,7 +83,6 @@ protected IdentResult() { }
this.Area = area;
this.AreaList = areaList;
this.ElementID = elementID;
this.Result = result;
}

/// <summary>
Expand Down Expand Up @@ -117,12 +115,6 @@ protected IdentResult() { }
[DataMember(Name = "ElementID", EmitDefaultValue = false)]
public int? ElementID { get; set; }

/// <summary>
/// Gets or Sets Result
/// </summary>
[DataMember(Name = "Result", EmitDefaultValue = false)]
public int? Result { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -139,7 +131,6 @@ public override string ToString()
sb.Append(" EtalonImage: ").Append(EtalonImage).Append("\n");
sb.Append(" AreaList: ").Append(AreaList).Append("\n");
sb.Append(" ElementID: ").Append(ElementID).Append("\n");
sb.Append(" Result: ").Append(Result).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
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@2bc6826a</example>
<example>[B@77df6449</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@2bc6826a</example>
<example>[B@77df6449</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
14 changes: 12 additions & 2 deletions src/Regula.DocumentReader.WebClient/Model/Light.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ public enum Light
/// </summary>
OFF = 0,

/// <summary>
/// Enum WHITE_TOP for value: 2
/// </summary>
WHITE_TOP = 2,

/// <summary>
/// Enum WHITE_SIDE for value: 4
/// </summary>
WHITE_SIDE = 4,

/// <summary>
/// Enum WHITE for value: 6
/// </summary>
Expand All @@ -53,9 +63,9 @@ public enum Light
UV = 128,

/// <summary>
/// Enum AXIAL_WHITE_FULL for value: 3072
/// Enum AXIAL_WHITE for value: 3072
/// </summary>
AXIAL_WHITE_FULL = 3072
AXIAL_WHITE = 3072
}

}
Loading
Loading