import { Vcs } from './vcs' ; import { GeneralInfo } from './generalInfo' ; export enum Status { Success , Failed , Unknown } export class BuildGeneralInfo extends GeneralInfo { constructor ( _artifactId , private _status , private _started ? , private _vcs ? , _version ? , _path ? , _scopes ? , _pkgType ? ) { super ( _artifactId , _version || '' , _scopes || [ ] , _path || '' , _pkgType || '' ) ; } get startedReadable ( ) : string { return this . _started ?. toLocaleString ( ) || '' ; } get startedTimestamp ( ) : string { return this . _started ?. getTime ( ) . toString ( ) || '' ; } set started ( value ) { this . _started = new Date ( value ) ; } get status ( ) : Status { return this . _status ; } set status ( value ) { this . _status = value ; } get vcs ( ) : Vcs { return this . _vcs || new Vcs ( ) ; } set vcs ( value ) { this . _vcs = value ; } }