From a7b05eb9977c6184e0903c3686b78fd2625f4d27 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 29 Jul 2021 07:27:21 +0000 Subject: [PATCH] fix image qa params names --- .../Model/ImageQA.cs | 82 +++++++++---------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs b/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs index 1f525d5..c236736 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs @@ -35,18 +35,18 @@ public partial class ImageQA : IEquatable, IValidatableObject /// /// 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.. /// 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.. - /// This option disabled focus check during performing image quality validation. - /// This option disabled glares check during performing image quality validation. - /// This option disabled colorness check during performing image quality validation. - /// This option disabled moire patterns check during performing image quality validation. - 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 option disabled focus check during performing image quality validation. + /// This option disabled glares check during performing image quality validation. + /// This option disabled colorness check during performing image quality validation. + /// This option disabled moire patterns check during performing image quality validation. + public ImageQA(int dpiThreshold = default(int), int angleThreshold = default(int), bool focusCheck = default(bool), bool glaresCheck = default(bool), bool colornessCheck = default(bool), bool moireCheck = default(bool)) { this.DpiThreshold = dpiThreshold; this.AngleThreshold = angleThreshold; - this.DisableFocusCheck = disableFocusCheck; - this.DisableGlaresCheck = disableGlaresCheck; - this.DisableColornessCheck = disableColornessCheck; - this.DisableMoireCheck = disableMoireCheck; + this.FocusCheck = focusCheck; + this.GlaresCheck = glaresCheck; + this.ColornessCheck = colornessCheck; + this.MoireCheck = moireCheck; } /// @@ -67,29 +67,29 @@ public partial class ImageQA : IEquatable, IValidatableObject /// This option disabled focus check during performing image quality validation /// /// This option disabled focus check during performing image quality validation - [DataMember(Name="disableFocusCheck", EmitDefaultValue=false)] - public bool DisableFocusCheck { get; set; } + [DataMember(Name="focusCheck", EmitDefaultValue=false)] + public bool FocusCheck { get; set; } /// /// This option disabled glares check during performing image quality validation /// /// This option disabled glares check during performing image quality validation - [DataMember(Name="disableGlaresCheck", EmitDefaultValue=false)] - public bool DisableGlaresCheck { get; set; } + [DataMember(Name="glaresCheck", EmitDefaultValue=false)] + public bool GlaresCheck { get; set; } /// /// This option disabled colorness check during performing image quality validation /// /// This option disabled colorness check during performing image quality validation - [DataMember(Name="disableColornessCheck", EmitDefaultValue=false)] - public bool DisableColornessCheck { get; set; } + [DataMember(Name="colornessCheck", EmitDefaultValue=false)] + public bool ColornessCheck { get; set; } /// /// This option disabled moire patterns check during performing image quality validation /// /// This option disabled moire patterns check during performing image quality validation - [DataMember(Name="disableMoireCheck", EmitDefaultValue=false)] - public bool DisableMoireCheck { get; set; } + [DataMember(Name="moireCheck", EmitDefaultValue=false)] + public bool MoireCheck { get; set; } /// /// Returns the string presentation of the object @@ -101,10 +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(" FocusCheck: ").Append(FocusCheck).Append("\n"); + sb.Append(" GlaresCheck: ").Append(GlaresCheck).Append("\n"); + sb.Append(" ColornessCheck: ").Append(ColornessCheck).Append("\n"); + sb.Append(" MoireCheck: ").Append(MoireCheck).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -150,24 +150,24 @@ public bool Equals(ImageQA input) this.AngleThreshold.Equals(input.AngleThreshold)) ) && ( - this.DisableFocusCheck == input.DisableFocusCheck || - (this.DisableFocusCheck != null && - this.DisableFocusCheck.Equals(input.DisableFocusCheck)) + this.FocusCheck == input.FocusCheck || + (this.FocusCheck != null && + this.FocusCheck.Equals(input.FocusCheck)) ) && ( - this.DisableGlaresCheck == input.DisableGlaresCheck || - (this.DisableGlaresCheck != null && - this.DisableGlaresCheck.Equals(input.DisableGlaresCheck)) + this.GlaresCheck == input.GlaresCheck || + (this.GlaresCheck != null && + this.GlaresCheck.Equals(input.GlaresCheck)) ) && ( - this.DisableColornessCheck == input.DisableColornessCheck || - (this.DisableColornessCheck != null && - this.DisableColornessCheck.Equals(input.DisableColornessCheck)) + this.ColornessCheck == input.ColornessCheck || + (this.ColornessCheck != null && + this.ColornessCheck.Equals(input.ColornessCheck)) ) && ( - this.DisableMoireCheck == input.DisableMoireCheck || - (this.DisableMoireCheck != null && - this.DisableMoireCheck.Equals(input.DisableMoireCheck)) + this.MoireCheck == input.MoireCheck || + (this.MoireCheck != null && + this.MoireCheck.Equals(input.MoireCheck)) ); } @@ -184,14 +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(); + if (this.FocusCheck != null) + hashCode = hashCode * 59 + this.FocusCheck.GetHashCode(); + if (this.GlaresCheck != null) + hashCode = hashCode * 59 + this.GlaresCheck.GetHashCode(); + if (this.ColornessCheck != null) + hashCode = hashCode * 59 + this.ColornessCheck.GetHashCode(); + if (this.MoireCheck != null) + hashCode = hashCode * 59 + this.MoireCheck.GetHashCode(); return hashCode; } }