Skip to content

Commit

Permalink
5.7.0 final additions
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user authored and hleb-albau committed Jul 22, 2021
1 parent ad80e86 commit e20cbfb
Show file tree
Hide file tree
Showing 4 changed files with 249 additions and 2 deletions.
1 change: 1 addition & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ src/Regula.DocumentReader.WebClient/Model/ListVerifiedFields.cs
src/Regula.DocumentReader.WebClient/Model/OCRSecurityTextResult.cs
src/Regula.DocumentReader.WebClient/Model/OneCandidate.cs
src/Regula.DocumentReader.WebClient/Model/OriginalSymbol.cs
src/Regula.DocumentReader.WebClient/Model/PerDocumentConfig.cs
src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs
src/Regula.DocumentReader.WebClient/Model/Point.cs
src/Regula.DocumentReader.WebClient/Model/PointArray.cs
Expand Down
70 changes: 69 additions & 1 deletion src/Regula.DocumentReader.WebClient/Model/ImageQA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,18 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
/// </summary>
/// <param name="dpiThreshold">This parameter sets threshold for Image QA check of the presented document physical dpi. If actual document dpi is below this threshold, check will fail..</param>
/// <param name="angleThreshold">This parameter sets threshold for Image QA check of the presented document perspective angle in degrees. If actual document perspective angle is above this threshold, check will fail..</param>
public ImageQA(int dpiThreshold = default(int), int angleThreshold = default(int))
/// <param name="disableFocusCheck">This option disabled focus check during performing image quality validation.</param>
/// <param name="disableGlaresCheck">This option disabled glares check during performing image quality validation.</param>
/// <param name="disableColornessCheck">This option disabled colorness check during performing image quality validation.</param>
/// <param name="disableMoireCheck">This option disabled moire patterns check during performing image quality validation.</param>
public ImageQA(int dpiThreshold = default(int), int angleThreshold = default(int), bool disableFocusCheck = default(bool), bool disableGlaresCheck = default(bool), bool disableColornessCheck = default(bool), bool disableMoireCheck = default(bool))
{
this.DpiThreshold = dpiThreshold;
this.AngleThreshold = angleThreshold;
this.DisableFocusCheck = disableFocusCheck;
this.DisableGlaresCheck = disableGlaresCheck;
this.DisableColornessCheck = disableColornessCheck;
this.DisableMoireCheck = disableMoireCheck;
}

/// <summary>
Expand All @@ -55,6 +63,34 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
[DataMember(Name="angleThreshold", EmitDefaultValue=false)]
public int AngleThreshold { get; set; }

/// <summary>
/// This option disabled focus check during performing image quality validation
/// </summary>
/// <value>This option disabled focus check during performing image quality validation</value>
[DataMember(Name="disableFocusCheck", EmitDefaultValue=false)]
public bool DisableFocusCheck { get; set; }

/// <summary>
/// This option disabled glares check during performing image quality validation
/// </summary>
/// <value>This option disabled glares check during performing image quality validation</value>
[DataMember(Name="disableGlaresCheck", EmitDefaultValue=false)]
public bool DisableGlaresCheck { get; set; }

/// <summary>
/// This option disabled colorness check during performing image quality validation
/// </summary>
/// <value>This option disabled colorness check during performing image quality validation</value>
[DataMember(Name="disableColornessCheck", EmitDefaultValue=false)]
public bool DisableColornessCheck { get; set; }

/// <summary>
/// This option disabled moire patterns check during performing image quality validation
/// </summary>
/// <value>This option disabled moire patterns check during performing image quality validation</value>
[DataMember(Name="disableMoireCheck", EmitDefaultValue=false)]
public bool DisableMoireCheck { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -65,6 +101,10 @@ public override string ToString()
sb.Append("class ImageQA {\n");
sb.Append(" DpiThreshold: ").Append(DpiThreshold).Append("\n");
sb.Append(" AngleThreshold: ").Append(AngleThreshold).Append("\n");
sb.Append(" DisableFocusCheck: ").Append(DisableFocusCheck).Append("\n");
sb.Append(" DisableGlaresCheck: ").Append(DisableGlaresCheck).Append("\n");
sb.Append(" DisableColornessCheck: ").Append(DisableColornessCheck).Append("\n");
sb.Append(" DisableMoireCheck: ").Append(DisableMoireCheck).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -108,6 +148,26 @@ public bool Equals(ImageQA input)
this.AngleThreshold == input.AngleThreshold ||
(this.AngleThreshold != null &&
this.AngleThreshold.Equals(input.AngleThreshold))
) &&
(
this.DisableFocusCheck == input.DisableFocusCheck ||
(this.DisableFocusCheck != null &&
this.DisableFocusCheck.Equals(input.DisableFocusCheck))
) &&
(
this.DisableGlaresCheck == input.DisableGlaresCheck ||
(this.DisableGlaresCheck != null &&
this.DisableGlaresCheck.Equals(input.DisableGlaresCheck))
) &&
(
this.DisableColornessCheck == input.DisableColornessCheck ||
(this.DisableColornessCheck != null &&
this.DisableColornessCheck.Equals(input.DisableColornessCheck))
) &&
(
this.DisableMoireCheck == input.DisableMoireCheck ||
(this.DisableMoireCheck != null &&
this.DisableMoireCheck.Equals(input.DisableMoireCheck))
);
}

Expand All @@ -124,6 +184,14 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.DpiThreshold.GetHashCode();
if (this.AngleThreshold != null)
hashCode = hashCode * 59 + this.AngleThreshold.GetHashCode();
if (this.DisableFocusCheck != null)
hashCode = hashCode * 59 + this.DisableFocusCheck.GetHashCode();
if (this.DisableGlaresCheck != null)
hashCode = hashCode * 59 + this.DisableGlaresCheck.GetHashCode();
if (this.DisableColornessCheck != null)
hashCode = hashCode * 59 + this.DisableColornessCheck.GetHashCode();
if (this.DisableMoireCheck != null)
hashCode = hashCode * 59 + this.DisableMoireCheck.GetHashCode();
return hashCode;
}
}
Expand Down
143 changes: 143 additions & 0 deletions src/Regula.DocumentReader.WebClient/Model/PerDocumentConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
/*
* Regula Document Reader Web API
*
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 5.6.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;

namespace Regula.DocumentReader.WebClient.Model
{
/// <summary>
/// PerDocumentConfig
/// </summary>
[DataContract]
public partial class PerDocumentConfig : IEquatable<PerDocumentConfig>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="PerDocumentConfig" /> class.
/// </summary>
/// <param name="docID">Specific template IDs, for which apply current custom configuration.</param>
/// <param name="excludeAuthChecks">Contains items from AuthenticityResultType as sum via OR operation.</param>
public PerDocumentConfig(List<int> docID = default(List<int>), int excludeAuthChecks = default(int))
{
this.DocID = docID;
this.ExcludeAuthChecks = excludeAuthChecks;
}

/// <summary>
/// Specific template IDs, for which apply current custom configuration
/// </summary>
/// <value>Specific template IDs, for which apply current custom configuration</value>
[DataMember(Name="docID", EmitDefaultValue=false)]
public List<int> DocID { get; set; }

/// <summary>
/// Contains items from AuthenticityResultType as sum via OR operation
/// </summary>
/// <value>Contains items from AuthenticityResultType as sum via OR operation</value>
[DataMember(Name="excludeAuthChecks", EmitDefaultValue=false)]
public int ExcludeAuthChecks { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class PerDocumentConfig {\n");
sb.Append(" DocID: ").Append(DocID).Append("\n");
sb.Append(" ExcludeAuthChecks: ").Append(ExcludeAuthChecks).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as PerDocumentConfig);
}

/// <summary>
/// Returns true if PerDocumentConfig instances are equal
/// </summary>
/// <param name="input">Instance of PerDocumentConfig to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(PerDocumentConfig input)
{
if (input == null)
return false;

return
(
this.DocID == input.DocID ||
this.DocID != null &&
input.DocID != null &&
this.DocID.SequenceEqual(input.DocID)
) &&
(
this.ExcludeAuthChecks == input.ExcludeAuthChecks ||
(this.ExcludeAuthChecks != null &&
this.ExcludeAuthChecks.Equals(input.ExcludeAuthChecks))
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.DocID != null)
hashCode = hashCode * 59 + this.DocID.GetHashCode();
if (this.ExcludeAuthChecks != null)
hashCode = hashCode * 59 + this.ExcludeAuthChecks.GetHashCode();
return hashCode;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}

}
Loading

0 comments on commit e20cbfb

Please sign in to comment.