Add project files.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LeagueAPI.Models.ReadyCheck;
|
||||
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public enum LolMatchmakingMatchmakingDodgeWarning
|
||||
{
|
||||
ConnectionWarning,
|
||||
Penalty,
|
||||
Warning,
|
||||
None,
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LeagueAPI.Models.ReadyCheck;
|
||||
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public enum LolMatchmakingMatchmakingReadyCheckResponse
|
||||
{
|
||||
Declined,
|
||||
Accepted,
|
||||
None,
|
||||
}
|
||||
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user