mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-26 23:18:39 +00:00
Implement player count per platform and player list API endpoints (#1014)
Some checks failed
Some checks failed
* Implement player count per platform and player list API endpoints * Fix inconsistencies in the XML documentation * Update PlayerListResponse.cs
This commit is contained in:
parent
fb2192d37d
commit
0af064ad1e
5 changed files with 113 additions and 10 deletions
|
@ -27,7 +27,8 @@ public class StatisticsController : ControllerBase
|
|||
public IActionResult PlayersInPodCount() => this.Ok(StatisticsHelper.RoomCountForPlatform(this.GetToken().Platform).ToString());
|
||||
|
||||
[HttpGet("totalPlayerCount")]
|
||||
public async Task<IActionResult> TotalPlayerCount() => this.Ok((await StatisticsHelper.RecentMatchesForGame(this.database, this.GetToken().GameVersion)).ToString());
|
||||
public async Task<IActionResult> TotalPlayerCount() =>
|
||||
this.Ok((await StatisticsHelper.RecentMatches(this.database, l => l.GameVersion == this.GetToken().GameVersion)).ToString());
|
||||
|
||||
[HttpGet("planetStats")]
|
||||
[Produces("text/xml")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue