Show champs ingame
This commit is contained in:
@@ -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
|
||||
);
|
||||
Reference in New Issue
Block a user