1 import { User as UserServerModel, UserRole } from '../../../../../shared'
3 export class User implements UserServerModel {
16 displayNSFW?: boolean,
20 this.username = hash.username
21 this.email = hash.email
23 this.displayNSFW = hash.displayNSFW
26 this.createdAt = hash.createdAt
31 return this.role === 'admin'