import { ToastrService } from 'ngx-toastr' ; import { AbstractNotificationService } from './abstract-notification.service' ; export class WebNotificationService implements AbstractNotificationService { constructor ( private toastr ) { } showError ( title , message , icon ? ) { this . toastr . error ( message , title ) ; } showInfo ( title , message , icon ? ) { this . toastr . info ( message , title ) ; } showSuccess ( title , message , icon ? ) { this . toastr . success ( message , title ) ; } showWarning ( title , message , icon ? ) { this . toastr . warning ( message , title ) ; } }