File

src/app/core/models/auth/user.model.ts

Index

Properties

Constructor

constructor(email: string, company: Company, role: Role, id?: number)
Parameters :
Name Type Optional Description
email string
company Company
role Role
id number true

Properties

Public company
company: Company
Type : Company
Public email
email: string
Type : string
Public id
id: number
Type : number
Public role
role: Role
Type : Role
state
state: UserState
Type : UserState
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);
  }
}

results matching ""

    No results matching ""