MalwareMultiScan/MalwareMultiScan.Ui/models/scan-result-entry-flattened.ts

20 lines
546 B
TypeScript
Raw Normal View History

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;
readonly threats: string[];
2020-10-27 21:40:34 +02:00
constructor(id: string, completed: boolean, succeeded: boolean | null, duration: number, threats: string[]) {
this.id = id;
this.completed = completed;
this.succeeded = succeeded;
2020-10-27 21:40:34 +02:00
this.duration = duration;
this.threats = threats;
}
2020-10-27 21:40:34 +02:00
}