import { AbstractNotificationService } from './abstract-notification.service' ; declare let window ; export class MobileNotificationService implements AbstractNotificationService { private RGB_COLOR_ERROR = '#FF0000' ; private RGB_COLOR_SUCCESS = '#32CD32' ; private RGB_COLOR_NEUTRAL = '#333333' ; private RGB_COLOR_WARNING = '#FFA500' ; showError ( title , message , icon ? ) { this . showNotification ( this . RGB_COLOR_ERROR , message ) ; } showInfo ( title , message , icon ? ) { this . showNotification ( this . RGB_COLOR_NEUTRAL , message ) ; } showWait ( title , message , icon ? ) { this . showNotification ( this . RGB_COLOR_NEUTRAL , message ) ; } showSuccess ( title , message , icon ? ) { this . showNotification ( this . RGB_COLOR_SUCCESS , message ) ; } showWarning ( title , message , icon ? ) { this . showNotification ( this . RGB_COLOR_WARNING , message ) ; } private showNotification ( backgroundColor , message ) { window . plugins . toast . showWithOptions ( { message : message , duration : 'long' , position : 'bottom' , addPixelsY : - 40 , styling : { backgroundColor : backgroundColor } } ) ; } }