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 bulk([FromQuery(Name = "id")] List accountIds) { List> reputations = new List>(); foreach (long item in accountIds) { #pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type. reputations.Add(new Dictionary { ["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); } } }