com.phloxui
Version:
PhloxUI Ng2+ Framework
38 lines (37 loc) • 1.65 kB
TypeScript
import { INotificationManager } from '../share/INotificationManager';
import { Notification } from '../component/model/Notification';
import { UISystemClock } from './UISystemClock.service';
/**
* <p style="text-indent: 2em;">
* A <code>ng</code> service class which is an implementation of [[INotificationManager]] service interface. For more information,
* please see [[INotificationManager]].
* </p>
*
* @author shiorin, tee4cute
* @see [[INotificationManager]]
*/
export declare class NotificationManager implements INotificationManager {
private notifications;
private pinNotifications;
private readNotifications;
private showDelayTimer;
private uiSystemClock;
constructor(uiSystemClock: UISystemClock);
private isPinedNotification(notification);
private isReadNotification(notification);
notify(notification: Notification): void;
clear(notification: Notification): void;
clearBy(notificationType: string, name: string): void;
clearAll(): void;
getNotifications(): Notification[];
getNotificationsBy(notificationType: string, name: string): Notification[];
getShowingNotifications(): Notification[];
getShowingNotificationsBy(notificationType: string, name: string): Notification[];
getUnreadNotifications(): Notification[];
getUnreadNotificationsBy(notificationType: string, name: string): Notification[];
markAsRead(notification: Notification): void;
markAsReadBy(notificationType: string, name: string): void;
markAsReadAll(): void;
pinNotification(notification: Notification): void;
unpinNotification(notification: Notification): void;
}