2020-10-27 19:26:16 +02:00
|
|
|
import ScanResultEntry from '~/models/scan-result-entry';
|
|
|
|
|
|
|
|
export default class ScanResultEntryFlattened implements ScanResultEntry {
|
|
|
|
readonly id: string;
|
|
|
|
readonly completed: boolean;
|
|
|
|
readonly succeeded: boolean | null;
|
2020-10-27 21:40:34 +02:00
|
|
|
readonly duration: number;
|
2020-10-27 19:26:16 +02:00
|
|
|
readonly threats: string[];
|
|
|
|
|
2020-10-27 21:40:34 +02:00
|
|
|
constructor(id: string, completed: boolean, succeeded: boolean | null, duration: number, threats: string[]) {
|
2020-10-27 19:26:16 +02:00
|
|
|
this.id = id;
|
|
|
|
this.completed = completed;
|
|
|
|
this.succeeded = succeeded;
|
2020-10-27 21:40:34 +02:00
|
|
|
this.duration = duration;
|
2020-10-27 19:26:16 +02:00
|
|
|
this.threats = threats;
|
|
|
|
}
|
2020-10-27 21:40:34 +02:00
|
|
|
|
|
|
|
|
2020-10-27 19:26:16 +02:00
|
|
|
}
|