@@ -40,7 +40,8 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
40
40
/// <param name="glaresCheck">This option enables glares check while performing image quality validation..</param>
41
41
/// <param name="colornessCheck">This option enables colorness check while performing image quality validation..</param>
42
42
/// <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 > ) )
44
45
{
45
46
this . BrightnessThreshold = brightnessThreshold ;
46
47
this . DpiThreshold = dpiThreshold ;
@@ -49,6 +50,7 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
49
50
this . GlaresCheck = glaresCheck ;
50
51
this . ColornessCheck = colornessCheck ;
51
52
this . DocumentPositionIndent = documentPositionIndent ;
53
+ this . ExpectedPass = expectedPass ;
52
54
}
53
55
54
56
/// <summary>
@@ -100,6 +102,13 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
100
102
[ DataMember ( Name = "documentPositionIndent" , EmitDefaultValue = false ) ]
101
103
public int DocumentPositionIndent { get ; set ; }
102
104
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
+
103
112
/// <summary>
104
113
/// Returns the string presentation of the object
105
114
/// </summary>
@@ -115,6 +124,7 @@ public override string ToString()
115
124
sb . Append ( " GlaresCheck: " ) . Append ( GlaresCheck ) . Append ( "\n " ) ;
116
125
sb . Append ( " ColornessCheck: " ) . Append ( ColornessCheck ) . Append ( "\n " ) ;
117
126
sb . Append ( " DocumentPositionIndent: " ) . Append ( DocumentPositionIndent ) . Append ( "\n " ) ;
127
+ sb . Append ( " ExpectedPass: " ) . Append ( ExpectedPass ) . Append ( "\n " ) ;
118
128
sb . Append ( "}\n " ) ;
119
129
return sb . ToString ( ) ;
120
130
}
@@ -183,6 +193,12 @@ public bool Equals(ImageQA input)
183
193
this . DocumentPositionIndent == input . DocumentPositionIndent ||
184
194
( this . DocumentPositionIndent != null &&
185
195
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 )
186
202
) ;
187
203
}
188
204
@@ -209,6 +225,8 @@ public override int GetHashCode()
209
225
hashCode = hashCode * 59 + this . ColornessCheck . GetHashCode ( ) ;
210
226
if ( this . DocumentPositionIndent != null )
211
227
hashCode = hashCode * 59 + this . DocumentPositionIndent . GetHashCode ( ) ;
228
+ if ( this . ExpectedPass != null )
229
+ hashCode = hashCode * 59 + this . ExpectedPass . GetHashCode ( ) ;
212
230
return hashCode ;
213
231
}
214
232
}
0 commit comments