two-slot-extended-mags/types/services/NotificationService.d.ts

22 lines
667 B
TypeScript
Raw Normal View History

2024-04-03 20:15:11 +11:00
import { INotification } from "@spt-aki/models/eft/notifier/INotifier";
2023-06-11 15:10:34 +10:00
export declare class NotificationService {
protected messageQueue: Record<string, any[]>;
getMessageQueue(): Record<string, any[]>;
getMessageFromQueue(sessionId: string): any[];
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
*/
get(sessionID: string): any[];
}