Files
VORTEX-REC-LEAK/Controllers/Api/PlayerReputationController.cs
2026-07-23 18:21:43 -07:00

37 lines
1.2 KiB
C#

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using static DeluxeBackend.Controllers.Api.AvatarController;
namespace DeluxeBackend.Controllers.Api
{
[Route("api/playerReputation")]
[ApiController]
public class PlayerReputationController : ControllerBase
{
[HttpGet("v2/bulk")]
public async Task<IActionResult> bulk([FromQuery(Name = "id")] List<long> accountIds)
{
List<Dictionary<string, object>> reputations = new List<Dictionary<string, object>>();
foreach (long item in accountIds)
{
#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.
reputations.Add(new Dictionary<string, object>
{
["AccountId"] = item,
["IsCheerful"] = true,
["Noteriety"] = 0.0,
["CheerCredit"] = 99,
["CheerGeneral"] = 0,
["CheerHelpful"] = 0,
["CheerCreative"] = 0,
["CheerGreatHost"] = 0,
["CheerSportsman"] = 0
});
#pragma warning restore CS8625
}
return Ok(reputations);
}
}
}