ScavXpCounts/types/helpers/NotifierHelper.d.ts

29 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-11-12 11:51:30 -07:00
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-08-17 19:49:16 -06:00
export declare class NotifierHelper {
protected httpServerHelper: HttpServerHelper;
/**
* The default notification sent when waiting times out.
*/
2024-11-12 11:51:30 -07:00
protected defaultNotification: IWsNotificationEvent;
2023-08-17 19:49:16 -06:00
constructor(httpServerHelper: HttpServerHelper);
2024-11-12 11:51:30 -07:00
getDefaultNotification(): IWsNotificationEvent;
2023-08-17 19:49:16 -06: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
*/
2024-11-12 11:51:30 -07:00
createRagfairOfferSoldNotification(dialogueMessage: Message, ragfairData: MessageContentRagfair): IWsRagfairOfferSold;
2023-08-17 19:49:16 -06:00
/**
* Create a new notification with the specified dialogueMessage object
* @param dialogueMessage
* @returns
*/
2024-11-12 11:51:30 -07:00
createNewMessageNotification(dialogueMessage: Message): IWsChatMessageReceived;
2023-08-17 19:49:16 -06:00
getWebSocketServer(sessionID: string): string;
}