import { UserGroup } from './user-group'; export class User { id: string | undefined; name: string; password: string; lockedOut: boolean; roles: UserGroup[]; perms: string[]; access_token?: string; exp: number; ver: string; lastDevice: string; lastDate?: string; public constructor(init?: Partial) { this.id = undefined; this.name = ''; this.password = ''; this.lockedOut = true; this.roles = []; this.perms = []; this.exp = 0; this.ver = ''; this.lastDevice = ''; Object.assign(this, init); } }