Add project files.

This commit is contained in:
2026-03-08 20:45:01 +01:00
commit 053a4052dd
45 changed files with 2578 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
using System.Text.Json.Serialization;
namespace LeagueAPI.Models.ReadyCheck;
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum LolMatchmakingMatchmakingDodgeWarning
{
ConnectionWarning,
Penalty,
Warning,
None,
}

View File

@@ -0,0 +1,24 @@
using System.Text.Json.Serialization;
namespace LeagueAPI.Models.ReadyCheck;
public record class LolMatchmakingMatchmakingReadyCheckResource
{
[JsonPropertyName("state")]
public LolMatchmakingMatchmakingReadyCheckState State { get; init; }
[JsonPropertyName("playerResponse")]
public LolMatchmakingMatchmakingReadyCheckResponse PlayerResponse { get; init; }
[JsonPropertyName("dodgeWarning")]
public LolMatchmakingMatchmakingDodgeWarning DodgeWarning { get; init; }
[JsonPropertyName("timer")]
public float Timer { get; init; }
[JsonPropertyName("declinerIds")]
public ulong[]? DeclinerIds { get; init; }
[JsonPropertyName("suppressUx")]
public bool SuppressUx { get; init; }
}

View File

@@ -0,0 +1,11 @@
using System.Text.Json.Serialization;
namespace LeagueAPI.Models.ReadyCheck;
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum LolMatchmakingMatchmakingReadyCheckResponse
{
Declined,
Accepted,
None,
}

View File

@@ -0,0 +1,14 @@
using System.Text.Json.Serialization;
namespace LeagueAPI.Models.ReadyCheck;
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum LolMatchmakingMatchmakingReadyCheckState
{
Error,
PartyNotReady,
StrangerNotReady,
EveryoneReady,
InProgress,
Invalid,
}