/**
 * Class which represents a notification class.
 * It serves to set the notification appearence.
 */
export class NotificationClass {
  /**
   * Default constructor.
   * @param {string} icon Class name of font-awsome icon.
   * @param {string} clazz The class to set notification style.
   */
  constructor(
    public icon: string,
    public clazz: string,
  ) {}
}

/**
 * Constant instances of NotificationClass.
 */
export const NotificationClasses = Object.freeze({
  'Error': new NotificationClass('exclamation-circle ', 'alert-danger'),
  'Warn': new NotificationClass('exclamation-triangle', 'alert-warning'),
  'Info': new NotificationClass('info-circle', 'alert-info'),
  'Success': new NotificationClass('check-circle', 'alert-success')
});

