File

src/app/models/limits-result.model.ts

Index

Properties
Methods
Accessors

Methods

addError
addError(error: string)
Parameters :
Name Type Optional
error string no
Returns : void

Properties

errors
errors: AppError[]
Type : AppError[]
Default value : new Array<AppError>()
requiresMfa
requiresMfa: boolean
Type : boolean

Accessors

isAllowed
getisAllowed()
import { AppError } from './error.model';

export class LimitsResult {
  errors: AppError[] = new Array<AppError>();
  requiresMfa: boolean;
  get isAllowed(): boolean {
    return this.errors.length === 0;
  }
  addError(error: string): void {
    this.errors.push(new AppError('Limit Exceeded', error));
  }
}

results matching ""

    No results matching ""