using SPTarkov.Common.Annotations; using SPTarkov.Server.Core.Controllers; using SPTarkov.Server.Core.Models.Eft.Common; using SPTarkov.Server.Core.Models.Eft.Prestige; using SPTarkov.Server.Core.Utils; namespace SPTarkov.Server.Core.Callbacks; [Injectable] public class PrestigeCallbacks( HttpResponseUtil _httpResponseUtil, PrestigeController _prestigeController ) { /// /// Handle client/prestige/list /// /// /// /// Session/player id /// public string GetPrestige(string url, EmptyRequestData _, string sessionID) { return _httpResponseUtil.GetBody(_prestigeController.GetPrestige(sessionID)); } /// /// Handle client/prestige/obtain /// /// /// /// Session/player id /// public string ObtainPrestige(string url, ObtainPrestigeRequestList info, string sessionID) { _prestigeController.ObtainPrestige(sessionID, info); return _httpResponseUtil.NullResponse(); } }