Server/project/src/callbacks/AchievementCallbacks.ts

35 lines
1.1 KiB
TypeScript
Raw Normal View History

import { AchievementController } from "@spt-aki/controllers/AchievementController";
2023-12-27 16:05:07 +01:00
import { IEmptyRequestData } from "@spt-aki/models/eft/common/IEmptyRequestData";
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
import { inject, injectable } from "tsyringe";
@injectable()
export class AchievementCallbacks
{
constructor(
@inject("AchievementController") protected achievementController: AchievementController,
2023-12-27 16:05:07 +01:00
@inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil,
)
{}
/**
* Handle client/achievement/list
*
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public getAchievements(url: string, info: IEmptyRequestData, sessionID: string): any
{
return this.httpResponse.getBody(this.achievementController.getAchievements(sessionID));
2023-12-27 16:05:07 +01:00
}
/**
* Handle client/achievement/statistic
*
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public statistic(url: string, info: IEmptyRequestData, sessionID: string): any
{
throw new Error("Not implemented");
}
}