24 lines
712 B
C#
24 lines
712 B
C#
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
|
|
);
|