export class AppJsonDependency { _appJsonDependency : any ; constructor ( appJsonDependency ) { if ( appJsonDependency ) { this . _appJsonDependency = appJsonDependency ; } else { this . _appJsonDependency = new Object ( ) ; } } get name ( ) : string { return this . _appJsonDependency . name ; } set name ( value ) { this . _appJsonDependency . name = value ; } get publisher ( ) : string { return this . _appJsonDependency . publisher ; } set publisher ( value ) { this . _appJsonDependency . publisher = value ; } get id ( ) : string { if ( this . _appJsonDependency . id ) { return this . _appJsonDependency . id ; } else { return this . _appJsonDependency . appId ; } } set id ( value ) { this . _appJsonDependency . id = value ; } get version ( ) : string { return this . _appJsonDependency . version ; } set version ( value ) { this . _appJsonDependency . version = value ; } get isTestApp ( ) : boolean { if ( ( this . isMicrosoft ) && ( this . name . toLocaleLowerCase ( ) . includes ( 'test' ) ) ) { return true ; } return ( this . name . toLocaleLowerCase ( ) . endsWith ( 'test' ) ) ; } get isMicrosoft ( ) : boolean { return ( this . _appJsonDependency . publisher . toLowerCase ( ) == 'microsoft' ) ; } }