Files
SPT-Server-Build/Core/Controllers/PrestigeController.cs
T
CWX 5e7b4e3538 more progress (#45)
* ignore nulls in json

* Implement ProfileActivityService

* add temp beta release

* implement customizationController

* comment out logging

* implement gameStart
2025-01-12 20:41:00 +00:00

47 lines
1.1 KiB
C#

using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Services;
namespace Core.Controllers;
[Injectable]
public class PrestigeController
{
private DatabaseService _databaseService;
public PrestigeController
(
DatabaseService databaseService
)
{
_databaseService = databaseService;
}
/// <summary>
/// Handle /client/prestige/list
/// </summary>
/// <param name="sessionId"></param>
/// <param name="info"></param>
/// <returns></returns>
public Prestige GetPrestige(
string sessionId,
EmptyRequestData info)
{
return _databaseService.GetTemplates().Prestige;
}
/// <summary>
/// Handle /client/prestige/obtain
/// </summary>
/// <param name="sessionId"></param>
/// <param name="info"></param>
/// <returns></returns>
public object ObtainPrestige( // TODO: returns `any` in the node server, not implemented either
string sessionId,
EmptyRequestData info)
{
throw new NotImplementedException("Method not Implemented");
}
}