src/app/core/models/auth/user.model.ts
Properties |
constructor(email: string, company: Company, role: Role, id?: number)
|
Defined in src/app/core/models/auth/user.model.ts:7
|
Public company |
company:
|
Type : Company
|
Defined in src/app/core/models/auth/user.model.ts:10
|
Public email |
email:
|
Type : string
|
Defined in src/app/core/models/auth/user.model.ts:9
|
Public id |
id:
|
Type : number
|
Defined in src/app/core/models/auth/user.model.ts:12
|
Public role |
role:
|
Type : Role
|
Defined in src/app/core/models/auth/user.model.ts:11
|
state |
state:
|
Type : UserState
|
Defined in src/app/core/models/auth/user.model.ts:7
|
import {Company} from "./company.model";
import {Role} from "./role.model";
import {UserState} from "./user-state.type";
export class User {
state?: UserState;
constructor(public email: string,
public company: Company,
public role: Role,
public id?: number) {
}
}
export class EmptyUser extends User {
constructor() {
super("", {id: -1, name: ""}, {id: 0, name: "", permissions: []}, -1);
}
}