5e7b4e3538
* ignore nulls in json * Implement ProfileActivityService * add temp beta release * implement customizationController * comment out logging * implement gameStart
47 lines
1.1 KiB
C#
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");
|
|
}
|
|
}
|