mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
This is the result of running `npm run format` which applies the Biome formatting rules. Rejoice!
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
import { NoteController } from "@spt/controllers/NoteController";
|
|
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
|
import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRouterResponse";
|
|
import { INoteActionData } from "@spt/models/eft/notes/INoteActionData";
|
|
import { inject, injectable } from "tsyringe";
|
|
|
|
@injectable()
|
|
export class NoteCallbacks {
|
|
constructor(@inject("NoteController") protected noteController: NoteController) {}
|
|
|
|
/** Handle AddNote event */
|
|
public addNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse {
|
|
return this.noteController.addNote(pmcData, body, sessionID);
|
|
}
|
|
|
|
/** Handle EditNote event */
|
|
public editNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse {
|
|
return this.noteController.editNote(pmcData, body, sessionID);
|
|
}
|
|
|
|
/** Handle DeleteNote event */
|
|
public deleteNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse {
|
|
return this.noteController.deleteNote(pmcData, body, sessionID);
|
|
}
|
|
}
|