@@ -45,7 +45,8 @@ protected ProcessResponse() { }
45
45
/// <param name="log">Base64 encoded transaction processing log.</param>
46
46
/// <param name="passBackObject">Free-form object provided in request. See passBackObject property of ProcessRequest..</param>
47
47
/// <param name="morePagesAvailable">morePagesAvailable.</param>
48
- public ProcessResponse ( int chipPage = default ( int ) , int processingFinished = default ( int ) , ContainerList containerList = default ( ContainerList ) , TransactionInfo transactionInfo = default ( TransactionInfo ) , string log = default ( string ) , Dictionary < string , Object > passBackObject = default ( Dictionary < string , Object > ) , int morePagesAvailable = default ( int ) )
48
+ /// <param name="elapsedTime">Time the document processing has taken, ms..</param>
49
+ public ProcessResponse ( int chipPage = default ( int ) , int processingFinished = default ( int ) , ContainerList containerList = default ( ContainerList ) , TransactionInfo transactionInfo = default ( TransactionInfo ) , string log = default ( string ) , Dictionary < string , Object > passBackObject = default ( Dictionary < string , Object > ) , int morePagesAvailable = default ( int ) , int elapsedTime = default ( int ) )
49
50
{
50
51
// to ensure "processingFinished" is required (not null)
51
52
if ( processingFinished == null )
@@ -81,6 +82,7 @@ protected ProcessResponse() { }
81
82
this . Log = log ;
82
83
this . PassBackObject = passBackObject ;
83
84
this . MorePagesAvailable = morePagesAvailable ;
85
+ this . ElapsedTime = elapsedTime ;
84
86
}
85
87
86
88
/// <summary>
@@ -127,6 +129,13 @@ protected ProcessResponse() { }
127
129
[ DataMember ( Name = "morePagesAvailable" , EmitDefaultValue = false ) ]
128
130
public int MorePagesAvailable { get ; set ; }
129
131
132
+ /// <summary>
133
+ /// Time the document processing has taken, ms.
134
+ /// </summary>
135
+ /// <value>Time the document processing has taken, ms.</value>
136
+ [ DataMember ( Name = "elapsedTime" , EmitDefaultValue = false ) ]
137
+ public int ElapsedTime { get ; set ; }
138
+
130
139
/// <summary>
131
140
/// Returns the string presentation of the object
132
141
/// </summary>
@@ -142,6 +151,7 @@ public override string ToString()
142
151
sb . Append ( " Log: " ) . Append ( Log ) . Append ( "\n " ) ;
143
152
sb . Append ( " PassBackObject: " ) . Append ( PassBackObject ) . Append ( "\n " ) ;
144
153
sb . Append ( " MorePagesAvailable: " ) . Append ( MorePagesAvailable ) . Append ( "\n " ) ;
154
+ sb . Append ( " ElapsedTime: " ) . Append ( ElapsedTime ) . Append ( "\n " ) ;
145
155
sb . Append ( "}\n " ) ;
146
156
return sb . ToString ( ) ;
147
157
}
@@ -211,6 +221,11 @@ public bool Equals(ProcessResponse input)
211
221
this . MorePagesAvailable == input . MorePagesAvailable ||
212
222
( this . MorePagesAvailable != null &&
213
223
this . MorePagesAvailable . Equals ( input . MorePagesAvailable ) )
224
+ ) &&
225
+ (
226
+ this . ElapsedTime == input . ElapsedTime ||
227
+ ( this . ElapsedTime != null &&
228
+ this . ElapsedTime . Equals ( input . ElapsedTime ) )
214
229
) ;
215
230
}
216
231
@@ -237,6 +252,8 @@ public override int GetHashCode()
237
252
hashCode = hashCode * 59 + this . PassBackObject . GetHashCode ( ) ;
238
253
if ( this . MorePagesAvailable != null )
239
254
hashCode = hashCode * 59 + this . MorePagesAvailable . GetHashCode ( ) ;
255
+ if ( this . ElapsedTime != null )
256
+ hashCode = hashCode * 59 + this . ElapsedTime . GetHashCode ( ) ;
240
257
return hashCode ;
241
258
}
242
259
}
0 commit comments