2023-12-27 18:15:38 +01:00
|
|
|
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(
|
2023-12-27 18:15:38 +01:00
|
|
|
@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
|
|
|
|
{
|
2023-12-27 18:15:38 +01:00
|
|
|
|
|
|
|
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");
|
|
|
|
}
|
|
|
|
}
|