two-slot-extended-mags/types/helpers/NotifierHelper.d.ts

29 lines
1.4 KiB
TypeScript
Raw Normal View History

import { HttpServerHelper } from "@spt/helpers/HttpServerHelper";
import { Message, MessageContentRagfair } from "@spt/models/eft/profile/ISptProfile";
import { IWsChatMessageReceived } from "@spt/models/eft/ws/IWsChatMessageReceived";
import { IWsNotificationEvent } from "@spt/models/eft/ws/IWsNotificationEvent";
import { IWsRagfairOfferSold } from "@spt/models/eft/ws/IWsRagfairOfferSold";
2023-06-11 15:10:34 +10:00
export declare class NotifierHelper {
protected httpServerHelper: HttpServerHelper;
/**
* The default notification sent when waiting times out.
*/
protected defaultNotification: IWsNotificationEvent;
2023-06-11 15:10:34 +10:00
constructor(httpServerHelper: HttpServerHelper);
getDefaultNotification(): IWsNotificationEvent;
2023-10-09 20:21:00 +11:00
/**
* Create a new notification that displays the "Your offer was sold!" prompt and removes sold offer from "My Offers" on clientside
* @param dialogueMessage Message from dialog that was sent
* @param ragfairData Ragfair data to attach to notification
* @returns
*/
createRagfairOfferSoldNotification(dialogueMessage: Message, ragfairData: MessageContentRagfair): IWsRagfairOfferSold;
2023-10-09 20:21:00 +11:00
/**
* Create a new notification with the specified dialogueMessage object
* @param dialogueMessage
* @returns
*/
createNewMessageNotification(dialogueMessage: Message): IWsChatMessageReceived;
2023-06-11 15:10:34 +10:00
getWebSocketServer(sessionID: string): string;
}