@@ -40,7 +40,8 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
4040 /// <param name="glaresCheck">This option enables glares check while performing image quality validation..</param>
4141 /// <param name="colornessCheck">This option enables colorness check while performing image quality validation..</param>
4242 /// <param name="documentPositionIndent">This parameter specifies the necessary margin. Default 0..</param>
43- public ImageQA ( double brightnessThreshold = default ( double ) , int dpiThreshold = default ( int ) , int angleThreshold = default ( int ) , bool ? focusCheck = default ( bool ? ) , bool ? glaresCheck = default ( bool ? ) , bool ? colornessCheck = default ( bool ? ) , int documentPositionIndent = default ( int ) )
43+ /// <param name="expectedPass">This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process..</param>
44+ public ImageQA ( double brightnessThreshold = default ( double ) , int dpiThreshold = default ( int ) , int angleThreshold = default ( int ) , bool ? focusCheck = default ( bool ? ) , bool ? glaresCheck = default ( bool ? ) , bool ? colornessCheck = default ( bool ? ) , int documentPositionIndent = default ( int ) , List < InputImageQualityChecks > expectedPass = default ( List < InputImageQualityChecks > ) )
4445 {
4546 this . BrightnessThreshold = brightnessThreshold ;
4647 this . DpiThreshold = dpiThreshold ;
@@ -49,6 +50,7 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
4950 this . GlaresCheck = glaresCheck ;
5051 this . ColornessCheck = colornessCheck ;
5152 this . DocumentPositionIndent = documentPositionIndent ;
53+ this . ExpectedPass = expectedPass ;
5254 }
5355
5456 /// <summary>
@@ -100,6 +102,13 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
100102 [ DataMember ( Name = "documentPositionIndent" , EmitDefaultValue = false ) ]
101103 public int DocumentPositionIndent { get ; set ; }
102104
105+ /// <summary>
106+ /// This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process.
107+ /// </summary>
108+ /// <value>This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process.</value>
109+ [ DataMember ( Name = "expectedPass" , EmitDefaultValue = false ) ]
110+ public List < InputImageQualityChecks > ExpectedPass { get ; set ; }
111+
103112 /// <summary>
104113 /// Returns the string presentation of the object
105114 /// </summary>
@@ -115,6 +124,7 @@ public override string ToString()
115124 sb . Append ( " GlaresCheck: " ) . Append ( GlaresCheck ) . Append ( "\n " ) ;
116125 sb . Append ( " ColornessCheck: " ) . Append ( ColornessCheck ) . Append ( "\n " ) ;
117126 sb . Append ( " DocumentPositionIndent: " ) . Append ( DocumentPositionIndent ) . Append ( "\n " ) ;
127+ sb . Append ( " ExpectedPass: " ) . Append ( ExpectedPass ) . Append ( "\n " ) ;
118128 sb . Append ( "}\n " ) ;
119129 return sb . ToString ( ) ;
120130 }
@@ -183,6 +193,12 @@ public bool Equals(ImageQA input)
183193 this . DocumentPositionIndent == input . DocumentPositionIndent ||
184194 ( this . DocumentPositionIndent != null &&
185195 this . DocumentPositionIndent . Equals ( input . DocumentPositionIndent ) )
196+ ) &&
197+ (
198+ this . ExpectedPass == input . ExpectedPass ||
199+ this . ExpectedPass != null &&
200+ input . ExpectedPass != null &&
201+ this . ExpectedPass . SequenceEqual ( input . ExpectedPass )
186202 ) ;
187203 }
188204
@@ -209,6 +225,8 @@ public override int GetHashCode()
209225 hashCode = hashCode * 59 + this . ColornessCheck . GetHashCode ( ) ;
210226 if ( this . DocumentPositionIndent != null )
211227 hashCode = hashCode * 59 + this . DocumentPositionIndent . GetHashCode ( ) ;
228+ if ( this . ExpectedPass != null )
229+ hashCode = hashCode * 59 + this . ExpectedPass . GetHashCode ( ) ;
212230 return hashCode ;
213231 }
214232 }
0 commit comments