export class User { constructor ( public default_board_id = 0 , public email = '' , public id = 0 , public last_login = null , public security_level = 4 , public user_option_id = 0 , public username = '' , public board_access = [ ] , public collapsed = [ ] ) { } isAdmin ( ) { return this . security_level === 1 ; } isBoardAdmin ( ) { return this . security_level === 2 ; } isAnyAdmin ( ) { return this . security_level === 1 || this . security_level === 2 ; } }