import { User } from '../../shared/models' ; export class UserDisplay extends User { public default_board_name : string ; public security_level_name : string ; public can_admin : boolean ; } export class ModalUser extends UserDisplay { public password = '' ; public password_verify : string = '' ; public boardAccess : string [ ] = [ ] ; constructor ( user ) { super ( + user . default_board_id , user . email , + user . id , user . last_login , + user . security_level , + user . user_option_id , user . username , user . board_access ) ; if ( + user . id === 0 ) { this . security_level = 3 ; } user . board_access . forEach ( id => { this . boardAccess . push ( '' + id ) ; } ) ; } } export class ModalProperties { constructor ( public prefix , public user ) { } }