Show champs ingame

This commit is contained in:
2026-04-29 18:15:21 +02:00
parent 06d5113711
commit 9f6105b970
5 changed files with 260 additions and 40 deletions
@@ -0,0 +1,23 @@
using System.Text.Json.Serialization;
namespace LeagueAPI.Models.GameClient;
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum TeamId
{
ALL,
UNKNOWN,
ORDER,
CHAOS,
NEUTRAL,
}
public record class PlayerResponse(
[property: JsonPropertyName("championName")] string ChampionName,
[property: JsonPropertyName("isBot")] bool IsBot,
[property: JsonPropertyName("rawChampionName")] string RawChampionName,
[property: JsonPropertyName("team")] TeamId Team,
[property: JsonPropertyName("riotId")] string RiotId,
[property: JsonPropertyName("riotIdGameName")] string RiotIdGameName,
[property: JsonPropertyName("riotIdTagLine")] string RiotIdTagLine
);