ReadScanDataResponse constructor
ReadScanDataResponse({
- required String job,
- required OperationResult result,
- ByteBuffer? data,
- int? estimatedCompletion,
Implementation
ReadScanDataResponse({
/// Provides the job handle passed to `readScanData()`.
required String job,
/// The result of reading data. If its value is
/// `SUCCESS`, then `data` contains the
/// _next_ (possibly zero-length) chunk of image data that is ready
/// for reading. If its value is `EOF`, the `data`
/// contains the _last_ chunk of image data.
required OperationResult result,
/// If `result` is `SUCCESS`, contains
/// the _next_ chunk of scanned image data. If `result` is
/// `EOF`, contains the _last_ chunk of
/// scanned image data.
ByteBuffer? data,
/// If `result` is `SUCCESS`, an estimate of
/// how much of the total scan data has been delivered so far, in the range
/// 0 to 100.
int? estimatedCompletion,
}) : _wrapped = $js.ReadScanDataResponse(
job: job,
result: result.toJS,
data: data?.toJS,
estimatedCompletion: estimatedCompletion,
);