2022-07-09 16:03:26 -04:00
|
|
|
import { INotification } from "../models/eft/notifier/INotifier";
|
|
|
|
export declare class NotificationService {
|
2022-10-06 23:29:01 -04:00
|
|
|
protected messageQueue: Record<string, any[]>;
|
|
|
|
getMessageQueue(): Record<string, any[]>;
|
|
|
|
getMessageFromQueue(sessionId: string): any[];
|
2022-07-09 16:03:26 -04:00
|
|
|
updateMessageOnQueue(sessionId: string, value: any[]): void;
|
|
|
|
has(sessionID: string): boolean;
|
|
|
|
/**
|
|
|
|
* Pop first message from queue.
|
|
|
|
*/
|
|
|
|
pop(sessionID: string): any;
|
|
|
|
/**
|
|
|
|
* Add message to queue
|
|
|
|
*/
|
|
|
|
add(sessionID: string, message: INotification): void;
|
|
|
|
/**
|
|
|
|
* Get message queue for session
|
|
|
|
* @param sessionID
|
|
|
|
*/
|
2022-10-06 23:29:01 -04:00
|
|
|
get(sessionID: string): any[];
|
2022-07-09 16:03:26 -04:00
|
|
|
}
|