smartlegal/ts/mod.licensechecker/classes.checkresult.ts

15 lines
403 B
TypeScript
Raw Normal View History

2021-05-17 15:46:59 +00:00
import { IModuleLicenseResult } from './interfaces';
2021-05-17 15:45:46 +00:00
export class CheckResult {
passingModules: IModuleLicenseResult[] = [];
failingModules: IModuleLicenseResult[] = [];
2021-05-17 15:46:59 +00:00
2021-05-17 15:45:46 +00:00
public addPassing(moduleResultArg: IModuleLicenseResult) {
this.passingModules.push(moduleResultArg);
}
public addFailing(moduleResultArg: IModuleLicenseResult) {
this.failingModules.push(moduleResultArg);
}
2021-05-17 15:46:59 +00:00
}