Skip to content

Commit e9338cd

Browse files
author
TFX-98
committed
FE-918 - add methods to get ImageQuality Array
1 parent d0980e4 commit e9338cd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/ext/process-response.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ export class Response {
8080
}
8181
}
8282

83+
public imageQualityChecksPerPage(): Array<ImageQualityCheckList> | undefined {
84+
return <Array<ImageQualityCheckList>>(
85+
this.lowLvlResponse.resultsByType(Result.IMAGE_QUALITY)
86+
);
87+
}
88+
8389
public decodedLog(): string | undefined {
8490
const log = this.lowLvlResponse.log;
8591
if (log) {
@@ -179,7 +185,9 @@ export class LowLvlResponse implements ProcessResponse {
179185
return undefined;
180186
}
181187

182-
public resultsByType(type: Result): Array<ResultItem | AuthenticityResult> {
188+
public resultsByType(
189+
type: Result
190+
): Array<ResultItem | AuthenticityResult | ImageQualityCheckList> {
183191
return this.ContainerList.List.filter(
184192
(container) => container.result_type === type
185193
);

0 commit comments

Comments
 (0)