# Introduction
-Linq2GraphQL generates C# classes from the GraphQL schema and and togheter with the nuget package Linq2GraphQL.Client it makes it possible to query the server using Linq expressions.
+
+Linq2GraphQL generates C# classes from the GraphQL schema and and togheter with the nuget package Linq2GraphQL.Client it
+makes it possible to query the server using Linq expressions.
A simple query that will get the first 10 orders with the primitive properties of orders and the connected customer.
+
```cs
var orders = await sampleClient
.Query
@@ -26,6 +28,7 @@ var orders = await sampleClient
```
A example mutation where we add a new customer and return the Customer Id.
+
```cs
var customerId = await sampleClient
.Mutation
@@ -40,16 +43,19 @@ A example mutation where we add a new customer and return the Customer Id.
```
# Getting Started
+
## Generate Client code
+
There are two options to generate the client code from the GraphQL schema.
-Use the online tool to generate or install Linq2GraphQL.Generator as a tool.
+Use the online tool to generate or install
+Linq2GraphQL.Generator as a tool.
-Install/Update Tool:
+Install/Update Tool:
dotnet tool update Linq2GraphQL.Generator -g --prerelease
-
- Usage:
-
+
+Usage:
+
Linq2GraphQL.Generator [options]
Arguments:
@@ -64,24 +70,29 @@ Install/Update Tool:
-es --enum-strategy If AddUnknownOption all enums will have an additional Unknown option
-nu --nullabel Nullable client [default: false]
-d --deprecated Include Deprecated as Obsolete
-
+
As an example:
Linq2GraphQL https://spacex-production.up.railway.app/ -c="SpaceXClient" -n="SpaceX" -o="Generated"
-Would generate a client from url *https://spacex-production.up.railway.app/* with the name *SpaceXClient* in the namespace *SpaceX* to folder *Generated*
+Would generate a client from url *https://spacex-production.up.railway.app/* with the name *SpaceXClient* in the
+namespace *SpaceX* to folder *Generated*
## Add Nuget
-Latest stable: [](https://www.nuget.org/packages/Linq2GraphQL.Client)
+Latest
+stable: [](https://www.nuget.org/packages/Linq2GraphQL.Client)
-Latest prerelease: [](https://www.nuget.org/packages/Linq2GraphQL.Client)
+Latest
+prerelease: [](https://www.nuget.org/packages/Linq2GraphQL.Client)
dotnet add package Linq2GraphQL.Client --prerelease
## Dependency Injection
+
The client adds a set of extensions to make it easier to add the client to dependency injection.
As an example this would add SpaceXClient to the container:
+
```cs
services
.SpaceXClient(x =>
@@ -94,15 +105,22 @@ services
httpClient.BaseAddress = new Uri("https://spacex-production.up.railway.app/");
});
```
+
## Safe Mode
-Turning on *SafeMode* will make the client before the first request to do an introspection query to the endpoint. The schema will be used to make sure that any auto included properties are available. This is an advanced feature that require the endpoint to support introspection. By default safe mode is turned of.
+
+Turning on *SafeMode* will make the client before the first request to do an introspection query to the endpoint. The
+schema will be used to make sure that any auto included properties are available. This is an advanced feature that
+require the endpoint to support introspection. By default safe mode is turned of.
# Acknowledgments
-Linq2GraphQL is inspired by [GraphQLinq](https://github.com/Giorgi/GraphQLinq) , thank you [Giorgi](https://github.com/Giorgi)
+
+Linq2GraphQL is inspired by [GraphQLinq](https://github.com/Giorgi/GraphQLinq) , thank
+you [Giorgi](https://github.com/Giorgi)
## Contributing
-Are you a developer looking to contribute to this project? Please see our [Developer Guide](DEVELOPER.md) for comprehensive information about:
+Are you a developer looking to contribute to this project? Please see our [Developer Guide](DEVELOPER.md) for
+comprehensive information about:
- T4 template development workflow
- Code generation system architecture
@@ -112,7 +130,9 @@ Are you a developer looking to contribute to this project? Please see our [Devel
## Development Workflow
-**⚠️ Important for Developers:** When modifying T4 templates (`.tt` files), you must manually regenerate the corresponding `.cs` files using Visual Studio's "Run Custom Tool" feature. See [DEVELOPER.md](DEVELOPER.md) for detailed instructions.
+**⚠️ Important for Developers:** When modifying T4 templates (`.tt` files), you must manually regenerate the
+corresponding `.cs` files using Visual Studio's "Run Custom Tool" feature. See [DEVELOPER.md](DEVELOPER.md) for detailed
+instructions.
[](https://github.com/linq2graphql/linq2graphql.client/stargazers)
diff --git a/StartGG/Client/Generated/Client/MutationMethods.cs b/StartGG/Client/Generated/Client/MutationMethods.cs
index e0f00f0d..fdd44076 100644
--- a/StartGG/Client/Generated/Client/MutationMethods.cs
+++ b/StartGG/Client/Generated/Client/MutationMethods.cs
@@ -5,8 +5,6 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System.Collections.Generic;
-using System;
using Linq2GraphQL.Client;
namespace StartGG.Client;
@@ -22,192 +20,172 @@ public MutationMethods(GraphClient client)
public GraphQuery DeletePhase(ID phaseId)
{
- var arguments = new List
- {
- new("phaseId","ID!", phaseId),
- };
+ var arguments = new List { new("phaseId", "ID!", phaseId) };
- return new GraphQuery(client, "deletePhase", OperationType.Mutation, arguments);
+ return new(client, "deletePhase", OperationType.Mutation, arguments);
}
public GraphQuery DeleteStation(ID stationId)
{
- var arguments = new List
- {
- new("stationId","ID!", stationId),
- };
+ var arguments = new List { new("stationId", "ID!", stationId) };
- return new GraphQuery(client, "deleteStation", OperationType.Mutation, arguments);
+ return new(client, "deleteStation", OperationType.Mutation, arguments);
}
public GraphQuery DeleteWave(ID waveId)
{
- var arguments = new List
- {
- new("waveId","ID!", waveId),
- };
+ var arguments = new List { new("waveId", "ID!", waveId) };
- return new GraphQuery(client, "deleteWave", OperationType.Mutation, arguments);
+ return new(client, "deleteWave", OperationType.Mutation, arguments);
}
public GraphQuery GenerateRegistrationToken(TournamentRegistrationInput registration, ID userId)
{
- var arguments = new List
+ var arguments = new List
{
- new("registration","TournamentRegistrationInput!", registration),
- new("userId","ID!", userId),
+ new("registration", "TournamentRegistrationInput!", registration), new("userId", "ID!", userId)
};
- return new GraphQuery(client, "generateRegistrationToken", OperationType.Mutation, arguments);
+ return new(client, "generateRegistrationToken", OperationType.Mutation, arguments);
}
public GraphQuery MarkSetCalled(ID setId)
{
- var arguments = new List
- {
- new("setId","ID!", setId),
- };
+ var arguments = new List { new("setId", "ID!", setId) };
- return new GraphQuery(client, "markSetCalled", OperationType.Mutation, arguments);
+ return new(client, "markSetCalled", OperationType.Mutation, arguments);
}
public GraphQuery MarkSetInProgress(ID setId)
{
- var arguments = new List
- {
- new("setId","ID!", setId),
- };
+ var arguments = new List { new("setId", "ID!", setId) };
- return new GraphQuery(client, "markSetInProgress", OperationType.Mutation, arguments);
+ return new(client, "markSetInProgress", OperationType.Mutation, arguments);
}
- public GraphQuery RegisterForTournament(TournamentRegistrationInput registration = null, string registrationToken = null)
+ public GraphQuery RegisterForTournament(TournamentRegistrationInput registration = null,
+ string registrationToken = null)
{
- var arguments = new List
+ var arguments = new List
{
- new("registration","TournamentRegistrationInput", registration),
- new("registrationToken","String", registrationToken),
+ new("registration", "TournamentRegistrationInput", registration),
+ new("registrationToken", "String", registrationToken)
};
- return new GraphQuery(client, "registerForTournament", OperationType.Mutation, arguments);
+ return new(client, "registerForTournament", OperationType.Mutation, arguments);
}
- public GraphQuery> ReportBracketSet(ID setId, ID winnerId = null, bool? isDQ = null, List gameData = null)
+ public GraphQuery> ReportBracketSet(ID setId, ID winnerId = null, bool? isDQ = null,
+ List gameData = null)
{
- var arguments = new List
+ var arguments = new List
{
- new("setId","ID!", setId),
- new("winnerId","ID", winnerId),
- new("isDQ","Boolean", isDQ),
- new("gameData","[BracketSetGameDataInput]", gameData),
+ new("setId", "ID!", setId),
+ new("winnerId", "ID", winnerId),
+ new("isDQ", "Boolean", isDQ),
+ new("gameData", "[BracketSetGameDataInput]", gameData)
};
- return new GraphQuery>(client, "reportBracketSet", OperationType.Mutation, arguments);
+ return new(client, "reportBracketSet", OperationType.Mutation, arguments);
}
public GraphQuery ResetSet(ID setId, bool? resetDependentSets = null)
{
- var arguments = new List
+ var arguments = new List
{
- new("setId","ID!", setId),
- new("resetDependentSets","Boolean", resetDependentSets),
+ new("setId", "ID!", setId), new("resetDependentSets", "Boolean", resetDependentSets)
};
- return new GraphQuery(client, "resetSet", OperationType.Mutation, arguments);
+ return new(client, "resetSet", OperationType.Mutation, arguments);
}
public GraphQuery> ResolveScheduleConflicts(ID tournamentId, ResolveConflictsOptions options = null)
{
- var arguments = new List
+ var arguments = new List
{
- new("tournamentId","ID!", tournamentId),
- new("options","ResolveConflictsOptions", options),
+ new("tournamentId", "ID!", tournamentId), new("options", "ResolveConflictsOptions", options)
};
- return new GraphQuery>(client, "resolveScheduleConflicts", OperationType.Mutation, arguments);
+ return new(client, "resolveScheduleConflicts", OperationType.Mutation, arguments);
}
public GraphQuery> SwapSeeds(ID phaseId, ID seed1Id, ID seed2Id)
{
- var arguments = new List
+ var arguments = new List
{
- new("phaseId","ID!", phaseId),
- new("seed1Id","ID!", seed1Id),
- new("seed2Id","ID!", seed2Id),
+ new("phaseId", "ID!", phaseId), new("seed1Id", "ID!", seed1Id), new("seed2Id", "ID!", seed2Id)
};
- return new GraphQuery>(client, "swapSeeds", OperationType.Mutation, arguments);
+ return new(client, "swapSeeds", OperationType.Mutation, arguments);
}
- public GraphQuery UpdateBracketSet(ID setId, ID winnerId = null, bool? isDQ = null, List gameData = null)
+ public GraphQuery UpdateBracketSet(ID setId, ID winnerId = null, bool? isDQ = null,
+ List gameData = null)
{
- var arguments = new List
+ var arguments = new List
{
- new("setId","ID!", setId),
- new("winnerId","ID", winnerId),
- new("isDQ","Boolean", isDQ),
- new("gameData","[BracketSetGameDataInput]", gameData),
+ new("setId", "ID!", setId),
+ new("winnerId", "ID", winnerId),
+ new("isDQ", "Boolean", isDQ),
+ new("gameData", "[BracketSetGameDataInput]", gameData)
};
- return new GraphQuery(client, "updateBracketSet", OperationType.Mutation, arguments);
+ return new(client, "updateBracketSet", OperationType.Mutation, arguments);
}
public GraphQuery> UpdatePhaseGroups(List groupConfigs)
{
- var arguments = new List
- {
- new("groupConfigs","[PhaseGroupUpdateInput]!", groupConfigs),
- };
+ var arguments = new List { new("groupConfigs", "[PhaseGroupUpdateInput]!", groupConfigs) };
- return new GraphQuery>(client, "updatePhaseGroups", OperationType.Mutation, arguments);
+ return new(client, "updatePhaseGroups", OperationType.Mutation, arguments);
}
- public GraphQuery UpdatePhaseSeeding(ID phaseId, List seedMapping, UpdatePhaseSeedingOptions options = null)
+ public GraphQuery UpdatePhaseSeeding(ID phaseId, List seedMapping,
+ UpdatePhaseSeedingOptions options = null)
{
- var arguments = new List
+ var arguments = new List
{
- new("phaseId","ID!", phaseId),
- new("seedMapping","[UpdatePhaseSeedInfo]!", seedMapping),
- new("options","UpdatePhaseSeedingOptions", options),
+ new("phaseId", "ID!", phaseId),
+ new("seedMapping", "[UpdatePhaseSeedInfo]!", seedMapping),
+ new("options", "UpdatePhaseSeedingOptions", options)
};
- return new GraphQuery(client, "updatePhaseSeeding", OperationType.Mutation, arguments);
+ return new(client, "updatePhaseSeeding", OperationType.Mutation, arguments);
}
public GraphQuery UpsertPhase(PhaseUpsertInput payload, ID phaseId = null, ID eventId = null)
{
- var arguments = new List
+ var arguments = new List
{
- new("phaseId","ID", phaseId),
- new("eventId","ID", eventId),
- new("payload","PhaseUpsertInput!", payload),
+ new("phaseId", "ID", phaseId),
+ new("eventId", "ID", eventId),
+ new("payload", "PhaseUpsertInput!", payload)
};
- return new GraphQuery(client, "upsertPhase", OperationType.Mutation, arguments);
+ return new(client, "upsertPhase", OperationType.Mutation, arguments);
}
public GraphQuery UpsertStation(StationUpsertInput fields, ID stationId = null, ID tournamentId = null)
{
- var arguments = new List
+ var arguments = new List
{
- new("stationId","ID", stationId),
- new("tournamentId","ID", tournamentId),
- new("fields","StationUpsertInput!", fields),
+ new("stationId", "ID", stationId),
+ new("tournamentId", "ID", tournamentId),
+ new("fields", "StationUpsertInput!", fields)
};
- return new GraphQuery(client, "upsertStation", OperationType.Mutation, arguments);
+ return new(client, "upsertStation", OperationType.Mutation, arguments);
}
public GraphQuery UpsertWave(WaveUpsertInput fields, ID waveId = null, ID tournamentId = null)
{
- var arguments = new List
+ var arguments = new List
{
- new("waveId","ID", waveId),
- new("tournamentId","ID", tournamentId),
- new("fields","WaveUpsertInput!", fields),
+ new("waveId", "ID", waveId),
+ new("tournamentId", "ID", tournamentId),
+ new("fields", "WaveUpsertInput!", fields)
};
- return new GraphQuery(client, "upsertWave", OperationType.Mutation, arguments);
- }
-
+ return new(client, "upsertWave", OperationType.Mutation, arguments);
}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Client/StartGGClient.cs b/StartGG/Client/Generated/Client/StartGGClient.cs
index 3f395ddd..e55eb4b1 100644
--- a/StartGG/Client/Generated/Client/StartGGClient.cs
+++ b/StartGG/Client/Generated/Client/StartGGClient.cs
@@ -6,22 +6,21 @@
//---------------------------------------------------------------------
using Linq2GraphQL.Client;
-using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
namespace StartGG.Client;
public class StartGGClient
-{
- public StartGGClient(HttpClient httpClient, [FromKeyedServices("StartGGClient")]IOptions options, IServiceProvider provider)
+{
+ public StartGGClient(HttpClient httpClient,
+ [FromKeyedServices("StartGGClient")] IOptions options, IServiceProvider provider)
{
- var client = new GraphClient(httpClient, options, provider, false);
- Query = new QueryMethods(client);
- Mutation = new MutationMethods(client);
+ var client = new GraphClient(httpClient, options, provider);
+ Query = new(client);
+ Mutation = new(client);
}
public QueryMethods Query { get; private set; }
public MutationMethods Mutation { get; private set; }
-
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Client/StartGGClientExtensions.cs b/StartGG/Client/Generated/Client/StartGGClientExtensions.cs
index bbec8195..1215cd4f 100644
--- a/StartGG/Client/Generated/Client/StartGGClientExtensions.cs
+++ b/StartGG/Client/Generated/Client/StartGGClientExtensions.cs
@@ -11,21 +11,22 @@
namespace StartGG.Client;
-public static class StartGGClientExtensions
+public static class StartGGClientExtensions
{
private const string ClientName = "StartGGClient";
-
+
public static IGraphClientBuilder AddStartGGClient(this IServiceCollection services)
{
var graphClientOptions = new GraphClientOptions();
return GraphClientBuilder(services, graphClientOptions);
}
-
- public static IGraphClientBuilder AddStartGGClient(this IServiceCollection services, Action opts)
+
+ public static IGraphClientBuilder AddStartGGClient(this IServiceCollection services,
+ Action opts)
{
var graphClientOptions = new GraphClientOptions();
opts(graphClientOptions);
-
+
return GraphClientBuilder(services, graphClientOptions);
}
@@ -33,8 +34,8 @@ private static IGraphClientBuilder GraphClientBuilder(IServiceCol
GraphClientOptions graphClientOptions)
{
var opts = Options.Create(graphClientOptions);
- services.AddKeyedSingleton(ClientName, opts);
- services.AddMemoryCache();
+ services.AddKeyedSingleton(ClientName, opts);
+ services.AddMemoryCache();
return new ClientBuilder(ClientName, services);
}
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/ActivityState.cs b/StartGG/Client/Generated/Enums/ActivityState.cs
index 920ed0ac..77a7ddae 100644
--- a/StartGG/Client/Generated/Enums/ActivityState.cs
+++ b/StartGG/Client/Generated/Enums/ActivityState.cs
@@ -5,27 +5,20 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum ActivityState
{
- [EnumMember(Value = "CREATED")]
- Created,
- [EnumMember(Value = "ACTIVE")]
- Active,
- [EnumMember(Value = "COMPLETED")]
- Completed,
- [EnumMember(Value = "READY")]
- Ready,
- [EnumMember(Value = "INVALID")]
- Invalid,
- [EnumMember(Value = "CALLED")]
- Called,
- [EnumMember(Value = "QUEUED")]
- Queued,
+ [EnumMember(Value = "CREATED")] Created,
+ [EnumMember(Value = "ACTIVE")] Active,
+ [EnumMember(Value = "COMPLETED")] Completed,
+ [EnumMember(Value = "READY")] Ready,
+ [EnumMember(Value = "INVALID")] Invalid,
+ [EnumMember(Value = "CALLED")] Called,
+ [EnumMember(Value = "QUEUED")] Queued
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/AuthorizationType.cs b/StartGG/Client/Generated/Enums/AuthorizationType.cs
index 6d103d77..e84a88bd 100644
--- a/StartGG/Client/Generated/Enums/AuthorizationType.cs
+++ b/StartGG/Client/Generated/Enums/AuthorizationType.cs
@@ -5,29 +5,21 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum AuthorizationType
{
- [EnumMember(Value = "TWITTER")]
- Twitter,
- [EnumMember(Value = "TWITCH")]
- Twitch,
- [EnumMember(Value = "STEAM")]
- Steam,
- [EnumMember(Value = "DISCORD")]
- Discord,
- [EnumMember(Value = "XBOX")]
- Xbox,
- [EnumMember(Value = "EPIC")]
- Epic,
- [EnumMember(Value = "BATTLENET")]
- Battlenet,
- [EnumMember(Value = "MIXER")]
- Mixer,
+ [EnumMember(Value = "TWITTER")] Twitter,
+ [EnumMember(Value = "TWITCH")] Twitch,
+ [EnumMember(Value = "STEAM")] Steam,
+ [EnumMember(Value = "DISCORD")] Discord,
+ [EnumMember(Value = "XBOX")] Xbox,
+ [EnumMember(Value = "EPIC")] Epic,
+ [EnumMember(Value = "BATTLENET")] Battlenet,
+ [EnumMember(Value = "MIXER")] Mixer
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/BracketType.cs b/StartGG/Client/Generated/Enums/BracketType.cs
index 3ebd453e..2aa030e7 100644
--- a/StartGG/Client/Generated/Enums/BracketType.cs
+++ b/StartGG/Client/Generated/Enums/BracketType.cs
@@ -5,9 +5,9 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
@@ -16,22 +16,19 @@ public enum BracketType
{
[EnumMember(Value = "SINGLE_ELIMINATION")]
SingleElimination,
+
[EnumMember(Value = "DOUBLE_ELIMINATION")]
DoubleElimination,
- [EnumMember(Value = "ROUND_ROBIN")]
- RoundRobin,
- [EnumMember(Value = "SWISS")]
- Swiss,
- [EnumMember(Value = "EXHIBITION")]
- Exhibition,
+ [EnumMember(Value = "ROUND_ROBIN")] RoundRobin,
+ [EnumMember(Value = "SWISS")] Swiss,
+ [EnumMember(Value = "EXHIBITION")] Exhibition,
+
[EnumMember(Value = "CUSTOM_SCHEDULE")]
CustomSchedule,
- [EnumMember(Value = "MATCHMAKING")]
- Matchmaking,
+ [EnumMember(Value = "MATCHMAKING")] Matchmaking,
+
[EnumMember(Value = "ELIMINATION_ROUNDS")]
EliminationRounds,
- [EnumMember(Value = "RACE")]
- Race,
- [EnumMember(Value = "CIRCUIT")]
- Circuit,
+ [EnumMember(Value = "RACE")] Race,
+ [EnumMember(Value = "CIRCUIT")] Circuit
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/Comparator.cs b/StartGG/Client/Generated/Enums/Comparator.cs
index 5d82383f..d4e0e12f 100644
--- a/StartGG/Client/Generated/Enums/Comparator.cs
+++ b/StartGG/Client/Generated/Enums/Comparator.cs
@@ -5,23 +5,22 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum Comparator
{
- [EnumMember(Value = "GREATER_THAN")]
- GreaterThan,
+ [EnumMember(Value = "GREATER_THAN")] GreaterThan,
+
[EnumMember(Value = "GREATER_THAN_OR_EQUAL")]
GreaterThanOrEqual,
- [EnumMember(Value = "EQUAL")]
- Equal,
+ [EnumMember(Value = "EQUAL")] Equal,
+
[EnumMember(Value = "LESS_THAN_OR_EQUAL")]
LessThanOrEqual,
- [EnumMember(Value = "LESS_THAN")]
- LessThan,
+ [EnumMember(Value = "LESS_THAN")] LessThan
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/GameSelectionType.cs b/StartGG/Client/Generated/Enums/GameSelectionType.cs
index 45f819e7..1118ac2d 100644
--- a/StartGG/Client/Generated/Enums/GameSelectionType.cs
+++ b/StartGG/Client/Generated/Enums/GameSelectionType.cs
@@ -5,15 +5,14 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum GameSelectionType
{
- [EnumMember(Value = "CHARACTER")]
- Character,
+ [EnumMember(Value = "CHARACTER")] Character
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/MatchConfigVerificationMethod.cs b/StartGG/Client/Generated/Enums/MatchConfigVerificationMethod.cs
index fefd6d1a..0fc18384 100644
--- a/StartGG/Client/Generated/Enums/MatchConfigVerificationMethod.cs
+++ b/StartGG/Client/Generated/Enums/MatchConfigVerificationMethod.cs
@@ -5,23 +5,18 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum MatchConfigVerificationMethod
{
- [EnumMember(Value = "TWITCH")]
- Twitch,
- [EnumMember(Value = "STREAM_ME")]
- StreamMe,
- [EnumMember(Value = "ANY")]
- Any,
- [EnumMember(Value = "MIXER")]
- Mixer,
- [EnumMember(Value = "YOUTUBE")]
- Youtube,
+ [EnumMember(Value = "TWITCH")] Twitch,
+ [EnumMember(Value = "STREAM_ME")] StreamMe,
+ [EnumMember(Value = "ANY")] Any,
+ [EnumMember(Value = "MIXER")] Mixer,
+ [EnumMember(Value = "YOUTUBE")] Youtube
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/SetSortType.cs b/StartGG/Client/Generated/Enums/SetSortType.cs
index 42a5c79e..a7974859 100644
--- a/StartGG/Client/Generated/Enums/SetSortType.cs
+++ b/StartGG/Client/Generated/Enums/SetSortType.cs
@@ -5,25 +5,19 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum SetSortType
{
- [EnumMember(Value = "NONE")]
- None,
- [EnumMember(Value = "CALL_ORDER")]
- CallOrder,
- [EnumMember(Value = "MAGIC")]
- Magic,
- [EnumMember(Value = "RECENT")]
- Recent,
- [EnumMember(Value = "STANDARD")]
- Standard,
- [EnumMember(Value = "ROUND")]
- Round,
+ [EnumMember(Value = "NONE")] None,
+ [EnumMember(Value = "CALL_ORDER")] CallOrder,
+ [EnumMember(Value = "MAGIC")] Magic,
+ [EnumMember(Value = "RECENT")] Recent,
+ [EnumMember(Value = "STANDARD")] Standard,
+ [EnumMember(Value = "ROUND")] Round
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/SocialConnectionType.cs b/StartGG/Client/Generated/Enums/SocialConnectionType.cs
index c51ab1d6..7a6a1de1 100644
--- a/StartGG/Client/Generated/Enums/SocialConnectionType.cs
+++ b/StartGG/Client/Generated/Enums/SocialConnectionType.cs
@@ -5,23 +5,18 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum SocialConnectionType
{
- [EnumMember(Value = "TWITTER")]
- Twitter,
- [EnumMember(Value = "TWITCH")]
- Twitch,
- [EnumMember(Value = "DISCORD")]
- Discord,
- [EnumMember(Value = "MIXER")]
- Mixer,
- [EnumMember(Value = "XBOX")]
- Xbox,
+ [EnumMember(Value = "TWITTER")] Twitter,
+ [EnumMember(Value = "TWITCH")] Twitch,
+ [EnumMember(Value = "DISCORD")] Discord,
+ [EnumMember(Value = "MIXER")] Mixer,
+ [EnumMember(Value = "XBOX")] Xbox
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/StreamSource.cs b/StartGG/Client/Generated/Enums/StreamSource.cs
index c35777dc..f24e995d 100644
--- a/StartGG/Client/Generated/Enums/StreamSource.cs
+++ b/StartGG/Client/Generated/Enums/StreamSource.cs
@@ -5,23 +5,18 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum StreamSource
{
- [EnumMember(Value = "TWITCH")]
- Twitch,
- [EnumMember(Value = "HITBOX")]
- Hitbox,
- [EnumMember(Value = "STREAMME")]
- Streamme,
- [EnumMember(Value = "MIXER")]
- Mixer,
- [EnumMember(Value = "YOUTUBE")]
- Youtube,
+ [EnumMember(Value = "TWITCH")] Twitch,
+ [EnumMember(Value = "HITBOX")] Hitbox,
+ [EnumMember(Value = "STREAMME")] Streamme,
+ [EnumMember(Value = "MIXER")] Mixer,
+ [EnumMember(Value = "YOUTUBE")] Youtube
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/StreamType.cs b/StartGG/Client/Generated/Enums/StreamType.cs
index 73c16c49..5bc66a11 100644
--- a/StartGG/Client/Generated/Enums/StreamType.cs
+++ b/StartGG/Client/Generated/Enums/StreamType.cs
@@ -5,19 +5,16 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum StreamType
{
- [EnumMember(Value = "TWITCH")]
- Twitch,
- [EnumMember(Value = "MIXER")]
- Mixer,
- [EnumMember(Value = "YOUTUBE")]
- Youtube,
+ [EnumMember(Value = "TWITCH")] Twitch,
+ [EnumMember(Value = "MIXER")] Mixer,
+ [EnumMember(Value = "YOUTUBE")] Youtube
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/TeamMemberStatus.cs b/StartGG/Client/Generated/Enums/TeamMemberStatus.cs
index c3ea17d7..9ad02cde 100644
--- a/StartGG/Client/Generated/Enums/TeamMemberStatus.cs
+++ b/StartGG/Client/Generated/Enums/TeamMemberStatus.cs
@@ -5,27 +5,20 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum TeamMemberStatus
{
- [EnumMember(Value = "UNKNOWN")]
- Unknown,
- [EnumMember(Value = "ACCEPTED")]
- Accepted,
- [EnumMember(Value = "INVITED")]
- Invited,
- [EnumMember(Value = "REQUEST")]
- Request,
- [EnumMember(Value = "ALUM")]
- Alum,
- [EnumMember(Value = "HIATUS")]
- Hiatus,
- [EnumMember(Value = "OPEN_SPOT")]
- OpenSpot,
+ [EnumMember(Value = "UNKNOWN")] Unknown,
+ [EnumMember(Value = "ACCEPTED")] Accepted,
+ [EnumMember(Value = "INVITED")] Invited,
+ [EnumMember(Value = "REQUEST")] Request,
+ [EnumMember(Value = "ALUM")] Alum,
+ [EnumMember(Value = "HIATUS")] Hiatus,
+ [EnumMember(Value = "OPEN_SPOT")] OpenSpot
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/TeamMemberType.cs b/StartGG/Client/Generated/Enums/TeamMemberType.cs
index 46087d29..4678b2fe 100644
--- a/StartGG/Client/Generated/Enums/TeamMemberType.cs
+++ b/StartGG/Client/Generated/Enums/TeamMemberType.cs
@@ -5,17 +5,15 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum TeamMemberType
{
- [EnumMember(Value = "PLAYER")]
- Player,
- [EnumMember(Value = "STAFF")]
- Staff,
+ [EnumMember(Value = "PLAYER")] Player,
+ [EnumMember(Value = "STAFF")] Staff
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Enums/TournamentPaginationSort.cs b/StartGG/Client/Generated/Enums/TournamentPaginationSort.cs
index c464b898..c5928c76 100644
--- a/StartGG/Client/Generated/Enums/TournamentPaginationSort.cs
+++ b/StartGG/Client/Generated/Enums/TournamentPaginationSort.cs
@@ -5,21 +5,21 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(JsonStringEnumMemberConverter))]
public enum TournamentPaginationSort
{
- [EnumMember(Value = "startAt")]
- Startat,
- [EnumMember(Value = "endAt")]
- Endat,
+ [EnumMember(Value = "startAt")] Startat,
+ [EnumMember(Value = "endAt")] Endat,
+
[EnumMember(Value = "eventRegistrationClosesAt")]
Eventregistrationclosesat,
+
[EnumMember(Value = "computedUpdatedAt")]
- Computedupdatedat,
+ Computedupdatedat
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Inputs/EventEntrantPageQueryFilter.cs b/StartGG/Client/Generated/Inputs/EventEntrantPageQueryFilter.cs
index 56af9308..b00ef5a5 100644
--- a/StartGG/Client/Generated/Inputs/EventEntrantPageQueryFilter.cs
+++ b/StartGG/Client/Generated/Inputs/EventEntrantPageQueryFilter.cs
@@ -5,22 +5,19 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(GraphInputConverter))]
-public partial class EventEntrantPageQueryFilter : GraphInputBase
+public class EventEntrantPageQueryFilter : GraphInputBase
{
- [GraphQLMember("name")]
- [JsonPropertyName("name")]
- public string Name
- {
- get => GetValue("name");
- set => SetValue("name", value);
- }
-
+ [GraphQLMember("name")]
+ [JsonPropertyName("name")]
+ public string Name
+ {
+ get => GetValue("name");
+ set => SetValue("name", value);
+ }
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Inputs/PhaseGroupPageQueryFilter.cs b/StartGG/Client/Generated/Inputs/PhaseGroupPageQueryFilter.cs
index 818f8fea..9b5b3796 100644
--- a/StartGG/Client/Generated/Inputs/PhaseGroupPageQueryFilter.cs
+++ b/StartGG/Client/Generated/Inputs/PhaseGroupPageQueryFilter.cs
@@ -5,30 +5,27 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(GraphInputConverter))]
-public partial class PhaseGroupPageQueryFilter : GraphInputBase
+public class PhaseGroupPageQueryFilter : GraphInputBase
{
- [GraphQLMember("id")]
- [JsonPropertyName("id")]
- public List Id
- {
- get => GetValue>("id");
- set => SetValue("id", value);
- }
-
- [GraphQLMember("waveId")]
- [JsonPropertyName("waveId")]
- public ID WaveId
- {
- get => GetValue("waveId");
- set => SetValue("waveId", value);
- }
+ [GraphQLMember("id")]
+ [JsonPropertyName("id")]
+ public List Id
+ {
+ get => GetValue>("id");
+ set => SetValue("id", value);
+ }
+ [GraphQLMember("waveId")]
+ [JsonPropertyName("waveId")]
+ public ID WaveId
+ {
+ get => GetValue("waveId");
+ set => SetValue("waveId", value);
+ }
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Inputs/ShopOrderMessagesQuery.cs b/StartGG/Client/Generated/Inputs/ShopOrderMessagesQuery.cs
index 272452f6..6e8574a1 100644
--- a/StartGG/Client/Generated/Inputs/ShopOrderMessagesQuery.cs
+++ b/StartGG/Client/Generated/Inputs/ShopOrderMessagesQuery.cs
@@ -5,38 +5,35 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(GraphInputConverter))]
-public partial class ShopOrderMessagesQuery : GraphInputBase
+public class ShopOrderMessagesQuery : GraphInputBase
{
- [GraphQLMember("page")]
- [JsonPropertyName("page")]
- public int? Page
- {
- get => GetValue("page");
- set => SetValue("page", value);
- }
+ [GraphQLMember("page")]
+ [JsonPropertyName("page")]
+ public int? Page
+ {
+ get => GetValue("page");
+ set => SetValue("page", value);
+ }
- [GraphQLMember("perPage")]
- [JsonPropertyName("perPage")]
- public int? PerPage
- {
- get => GetValue("perPage");
- set => SetValue("perPage", value);
- }
-
- [GraphQLMember("sortBy")]
- [JsonPropertyName("sortBy")]
- public string SortBy
- {
- get => GetValue("sortBy");
- set => SetValue("sortBy", value);
- }
+ [GraphQLMember("perPage")]
+ [JsonPropertyName("perPage")]
+ public int? PerPage
+ {
+ get => GetValue("perPage");
+ set => SetValue("perPage", value);
+ }
+ [GraphQLMember("sortBy")]
+ [JsonPropertyName("sortBy")]
+ public string SortBy
+ {
+ get => GetValue("sortBy");
+ set => SetValue("sortBy", value);
+ }
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Inputs/TeamPaginationQuery.cs b/StartGG/Client/Generated/Inputs/TeamPaginationQuery.cs
index 9aa2c66d..be89d978 100644
--- a/StartGG/Client/Generated/Inputs/TeamPaginationQuery.cs
+++ b/StartGG/Client/Generated/Inputs/TeamPaginationQuery.cs
@@ -5,46 +5,43 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(GraphInputConverter))]
-public partial class TeamPaginationQuery : GraphInputBase
+public class TeamPaginationQuery : GraphInputBase
{
- [GraphQLMember("page")]
- [JsonPropertyName("page")]
- public int? Page
- {
- get => GetValue("page");
- set => SetValue("page", value);
- }
+ [GraphQLMember("page")]
+ [JsonPropertyName("page")]
+ public int? Page
+ {
+ get => GetValue("page");
+ set => SetValue("page", value);
+ }
- [GraphQLMember("perPage")]
- [JsonPropertyName("perPage")]
- public int? PerPage
- {
- get => GetValue("perPage");
- set => SetValue("perPage", value);
- }
+ [GraphQLMember("perPage")]
+ [JsonPropertyName("perPage")]
+ public int? PerPage
+ {
+ get => GetValue("perPage");
+ set => SetValue("perPage", value);
+ }
- [GraphQLMember("sortBy")]
- [JsonPropertyName("sortBy")]
- public string SortBy
- {
- get => GetValue("sortBy");
- set => SetValue("sortBy", value);
- }
-
- [GraphQLMember("filter")]
- [JsonPropertyName("filter")]
- public TeamPaginationFilter Filter
- {
- get => GetValue("filter");
- set => SetValue("filter", value);
- }
+ [GraphQLMember("sortBy")]
+ [JsonPropertyName("sortBy")]
+ public string SortBy
+ {
+ get => GetValue("sortBy");
+ set => SetValue("sortBy", value);
+ }
+ [GraphQLMember("filter")]
+ [JsonPropertyName("filter")]
+ public TeamPaginationFilter Filter
+ {
+ get => GetValue("filter");
+ set => SetValue("filter", value);
+ }
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Inputs/WaveUpsertInput.cs b/StartGG/Client/Generated/Inputs/WaveUpsertInput.cs
index 5a35e5df..ad8422a3 100644
--- a/StartGG/Client/Generated/Inputs/WaveUpsertInput.cs
+++ b/StartGG/Client/Generated/Inputs/WaveUpsertInput.cs
@@ -5,38 +5,35 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
namespace StartGG.Client;
[JsonConverter(typeof(GraphInputConverter))]
-public partial class WaveUpsertInput : GraphInputBase
+public class WaveUpsertInput : GraphInputBase
{
- [GraphQLMember("identifier")]
- [JsonPropertyName("identifier")]
- public string Identifier
- {
- get => GetValue("identifier");
- set => SetValue("identifier", value);
- }
+ [GraphQLMember("identifier")]
+ [JsonPropertyName("identifier")]
+ public string Identifier
+ {
+ get => GetValue("identifier");
+ set => SetValue("identifier", value);
+ }
- [GraphQLMember("startAt")]
- [JsonPropertyName("startAt")]
- public Timestamp StartAt
- {
- get => GetValue("startAt");
- set => SetValue("startAt", value);
- }
-
- [GraphQLMember("endAt")]
- [JsonPropertyName("endAt")]
- public Timestamp EndAt
- {
- get => GetValue("endAt");
- set => SetValue("endAt", value);
- }
+ [GraphQLMember("startAt")]
+ [JsonPropertyName("startAt")]
+ public Timestamp StartAt
+ {
+ get => GetValue("startAt");
+ set => SetValue("startAt", value);
+ }
+ [GraphQLMember("endAt")]
+ [JsonPropertyName("endAt")]
+ public Timestamp EndAt
+ {
+ get => GetValue("endAt");
+ set => SetValue("endAt", value);
+ }
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Interfaces/ActionSet.cs b/StartGG/Client/Generated/Interfaces/ActionSet.cs
index 605db65f..98327579 100644
--- a/StartGG/Client/Generated/Interfaces/ActionSet.cs
+++ b/StartGG/Client/Generated/Interfaces/ActionSet.cs
@@ -5,7 +5,6 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
@@ -16,8 +15,6 @@ namespace StartGG.Client;
public static class ActionSetExtentions
{
-
-
[GraphInterface]
public static TeamActionSet TeamActionSet(this ActionSet value)
{
@@ -25,39 +22,34 @@ public static TeamActionSet TeamActionSet(this ActionSet value)
{
return (TeamActionSet)value;
}
+
return null;
}
}
-
internal class ActionSetConverter : InterfaceJsonConverter
{
- public override ActionSet Deserialize(string typeName, JsonObject json) => typeName switch
+ public override ActionSet Deserialize(string typeName, JsonObject json)
{
- "TeamActionSet" => json.Deserialize(),
- _ => json.Deserialize< ActionSet__Concrete>()
- };
+ return typeName switch
+ {
+ "TeamActionSet" => json.Deserialize(),
+ _ => json.Deserialize()
+ };
+ }
}
-
-
-
[JsonConverter(typeof(ActionSetConverter))]
-public interface ActionSet
+public interface ActionSet
{
- [GraphQLMember("id")]
- public ID Id { get; set; }
- [GraphQLMember("__typename")]
- public string __TypeName { get; set; }
+ [GraphQLMember("id")] public ID Id { get; set; }
+ [GraphQLMember("__typename")] public string __TypeName { get; set; }
}
internal class ActionSet__Concrete : ActionSet
{
- [GraphQLMember("id")]
- public ID Id { get; set; }
-
- [GraphQLMember("__typename")]
- public string __TypeName { get; set; }
+ [GraphQLMember("id")] public ID Id { get; set; }
+ [GraphQLMember("__typename")] public string __TypeName { get; set; }
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Interfaces/BracketConfig.cs b/StartGG/Client/Generated/Interfaces/BracketConfig.cs
index 328672f9..dd607ef2 100644
--- a/StartGG/Client/Generated/Interfaces/BracketConfig.cs
+++ b/StartGG/Client/Generated/Interfaces/BracketConfig.cs
@@ -5,7 +5,6 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
@@ -16,8 +15,6 @@ namespace StartGG.Client;
public static class BracketConfigExtentions
{
-
-
[GraphInterface]
public static RaceBracketConfig RaceBracketConfig(this BracketConfig value)
{
@@ -25,43 +22,38 @@ public static RaceBracketConfig RaceBracketConfig(this BracketConfig value)
{
return (RaceBracketConfig)value;
}
+
return null;
}
}
-
internal class BracketConfigConverter : InterfaceJsonConverter
{
- public override BracketConfig Deserialize(string typeName, JsonObject json) => typeName switch
+ public override BracketConfig Deserialize(string typeName, JsonObject json)
{
- "RaceBracketConfig" => json.Deserialize(),
- _ => json.Deserialize< BracketConfig__Concrete>()
- };
+ return typeName switch
+ {
+ "RaceBracketConfig" => json.Deserialize(),
+ _ => json.Deserialize()
+ };
+ }
}
-
-
-
[JsonConverter(typeof(BracketConfigConverter))]
-public interface BracketConfig
+public interface BracketConfig
{
- [GraphQLMember("id")]
- public ID Id { get; set; }
- [GraphQLMember("bracketType")]
- public BracketType? BracketType { get; set; }
- [GraphQLMember("__typename")]
- public string __TypeName { get; set; }
+ [GraphQLMember("id")] public ID Id { get; set; }
+
+ [GraphQLMember("bracketType")] public BracketType? BracketType { get; set; }
+ [GraphQLMember("__typename")] public string __TypeName { get; set; }
}
internal class BracketConfig__Concrete : BracketConfig
{
- [GraphQLMember("id")]
- public ID Id { get; set; }
- [GraphQLMember("bracketType")]
- public BracketType? BracketType { get; set; }
+ [GraphQLMember("id")] public ID Id { get; set; }
- [GraphQLMember("__typename")]
- public string __TypeName { get; set; }
+ [GraphQLMember("bracketType")] public BracketType? BracketType { get; set; }
+ [GraphQLMember("__typename")] public string __TypeName { get; set; }
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Interfaces/MatchConfig.cs b/StartGG/Client/Generated/Interfaces/MatchConfig.cs
index 324d931b..038d2adc 100644
--- a/StartGG/Client/Generated/Interfaces/MatchConfig.cs
+++ b/StartGG/Client/Generated/Interfaces/MatchConfig.cs
@@ -5,7 +5,6 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
@@ -16,8 +15,6 @@ namespace StartGG.Client;
public static class MatchConfigExtentions
{
-
-
[GraphInterface]
public static RaceMatchConfig RaceMatchConfig(this MatchConfig value)
{
@@ -25,43 +22,38 @@ public static RaceMatchConfig RaceMatchConfig(this MatchConfig value)
{
return (RaceMatchConfig)value;
}
+
return null;
}
}
-
internal class MatchConfigConverter : InterfaceJsonConverter
{
- public override MatchConfig Deserialize(string typeName, JsonObject json) => typeName switch
+ public override MatchConfig Deserialize(string typeName, JsonObject json)
{
- "RaceMatchConfig" => json.Deserialize(),
- _ => json.Deserialize< MatchConfig__Concrete>()
- };
+ return typeName switch
+ {
+ "RaceMatchConfig" => json.Deserialize(),
+ _ => json.Deserialize()
+ };
+ }
}
-
-
-
[JsonConverter(typeof(MatchConfigConverter))]
-public interface MatchConfig
+public interface MatchConfig
{
- [GraphQLMember("id")]
- public ID Id { get; set; }
- [GraphQLMember("bracketType")]
- public BracketType? BracketType { get; set; }
- [GraphQLMember("__typename")]
- public string __TypeName { get; set; }
+ [GraphQLMember("id")] public ID Id { get; set; }
+
+ [GraphQLMember("bracketType")] public BracketType? BracketType { get; set; }
+ [GraphQLMember("__typename")] public string __TypeName { get; set; }
}
internal class MatchConfig__Concrete : MatchConfig
{
- [GraphQLMember("id")]
- public ID Id { get; set; }
- [GraphQLMember("bracketType")]
- public BracketType? BracketType { get; set; }
+ [GraphQLMember("id")] public ID Id { get; set; }
- [GraphQLMember("__typename")]
- public string __TypeName { get; set; }
+ [GraphQLMember("bracketType")] public BracketType? BracketType { get; set; }
+ [GraphQLMember("__typename")] public string __TypeName { get; set; }
}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Scalars/ID.cs b/StartGG/Client/Generated/Scalars/ID.cs
index 8b38c077..3f303b56 100644
--- a/StartGG/Client/Generated/Scalars/ID.cs
+++ b/StartGG/Client/Generated/Scalars/ID.cs
@@ -6,15 +6,17 @@
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
- ///
- /// The `ID` scalar type represents a unique identifier, often used to
-/// refetch an object or as key for a cache. When expected as an input type, any string (such as `"4"`) or integer
-/// (such as `4`) input value will be accepted as an ID.
- ///
- [JsonConverter(typeof(CustomScalarConverter))]
- public partial class ID : CustomScalar {}
\ No newline at end of file
+///
+/// The `ID` scalar type represents a unique identifier, often used to
+/// refetch an object or as key for a cache. When expected as an input type, any string (such as `"4"`) or integer
+/// (such as `4`) input value will be accepted as an ID.
+///
+[JsonConverter(typeof(CustomScalarConverter))]
+public class ID : CustomScalar
+{
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Scalars/JSON.cs b/StartGG/Client/Generated/Scalars/JSON.cs
index 947223de..b61c5763 100644
--- a/StartGG/Client/Generated/Scalars/JSON.cs
+++ b/StartGG/Client/Generated/Scalars/JSON.cs
@@ -6,14 +6,16 @@
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
- ///
- /// The `JSON` scalar type represents JSON values as specified by
-/// [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
- ///
- [JsonConverter(typeof(CustomScalarConverter))]
- public partial class JSON : CustomScalar {}
\ No newline at end of file
+///
+/// The `JSON` scalar type represents JSON values as specified by
+/// [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
+///
+[JsonConverter(typeof(CustomScalarConverter))]
+public class JSON : CustomScalar
+{
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Scalars/Timestamp.cs b/StartGG/Client/Generated/Scalars/Timestamp.cs
index 13555198..e1da00f5 100644
--- a/StartGG/Client/Generated/Scalars/Timestamp.cs
+++ b/StartGG/Client/Generated/Scalars/Timestamp.cs
@@ -6,14 +6,16 @@
//---------------------------------------------------------------------
-using Linq2GraphQL.Client;
using System.Text.Json.Serialization;
+using Linq2GraphQL.Client;
namespace StartGG.Client;
- ///
- /// Represents a Unix Timestamp. Supports up to 53 bit int values,
-/// as that is JavaScript's internal memory allocation for integer values.
- ///
- [JsonConverter(typeof(CustomScalarConverter))]
- public partial class Timestamp : CustomScalar {}
\ No newline at end of file
+///
+/// Represents a Unix Timestamp. Supports up to 53 bit int values,
+/// as that is JavaScript's internal memory allocation for integer values.
+///
+[JsonConverter(typeof(CustomScalarConverter))]
+public class Timestamp : CustomScalar
+{
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/Address.cs b/StartGG/Client/Generated/Types/Address.cs
index e3e765cd..b67b73b5 100644
--- a/StartGG/Client/Generated/Types/Address.cs
+++ b/StartGG/Client/Generated/Types/Address.cs
@@ -5,19 +5,16 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
///
-/// A user's address
+/// A user's address
///
-public partial class Address : GraphQLTypeBase
+public class Address : GraphQLTypeBase
{
[GraphQLMember("id")]
[JsonPropertyName("id")]
@@ -42,5 +39,4 @@ public partial class Address : GraphQLTypeBase
[GraphQLMember("stateId")]
[JsonPropertyName("stateId")]
public int? StateId { get; set; }
-
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/ContactInfo.cs b/StartGG/Client/Generated/Types/ContactInfo.cs
index cc5b37d1..b70175c5 100644
--- a/StartGG/Client/Generated/Types/ContactInfo.cs
+++ b/StartGG/Client/Generated/Types/ContactInfo.cs
@@ -5,40 +5,37 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
///
-/// Name, address, etc
+/// Name, address, etc
///
-public partial class ContactInfo : GraphQLTypeBase
+public class ContactInfo : GraphQLTypeBase
{
[GraphQLMember("id")]
[JsonPropertyName("id")]
public ID Id { get; set; }
///
- /// Participant City Name
+ /// Participant City Name
///
[GraphQLMember("city")]
[JsonPropertyName("city")]
public string City { get; set; }
///
- /// Participant Country Name
+ /// Participant Country Name
///
[GraphQLMember("country")]
[JsonPropertyName("country")]
public string Country { get; set; }
///
- /// Participant Country (region) id
+ /// Participant Country (region) id
///
[GraphQLMember("countryId")]
[JsonPropertyName("countryId")]
@@ -49,38 +46,37 @@ public partial class ContactInfo : GraphQLTypeBase
public string Name { get; set; }
///
- /// First Name
+ /// First Name
///
[GraphQLMember("nameFirst")]
[JsonPropertyName("nameFirst")]
public string NameFirst { get; set; }
///
- /// Last Name
+ /// Last Name
///
[GraphQLMember("nameLast")]
[JsonPropertyName("nameLast")]
public string NameLast { get; set; }
///
- /// Participant State Name
+ /// Participant State Name
///
[GraphQLMember("state")]
[JsonPropertyName("state")]
public string State { get; set; }
///
- /// Participant State (region) id
+ /// Participant State (region) id
///
[GraphQLMember("stateId")]
[JsonPropertyName("stateId")]
public int? StateId { get; set; }
///
- /// Zip or Postal Code
+ /// Zip or Postal Code
///
[GraphQLMember("zipcode")]
[JsonPropertyName("zipcode")]
public string Zipcode { get; set; }
-
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/EntrantConnection.cs b/StartGG/Client/Generated/Types/EntrantConnection.cs
index f7dc74fb..3b590c74 100644
--- a/StartGG/Client/Generated/Types/EntrantConnection.cs
+++ b/StartGG/Client/Generated/Types/EntrantConnection.cs
@@ -5,23 +5,19 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
-public partial class EntrantConnection : GraphQLTypeBase, Linq2GraphQL.Client.Common.ICursorPaging
+public class EntrantConnection : GraphQLTypeBase, ICursorPaging
{
- [GraphQLMember("pageInfo")]
- [JsonPropertyName("pageInfo")]
- public Linq2GraphQL.Client.Common.PageInfo PageInfo { get; set; }
-
[GraphQLMember("nodes")]
[JsonPropertyName("nodes")]
public List Nodes { get; set; }
-}
+ [GraphQLMember("pageInfo")]
+ [JsonPropertyName("pageInfo")]
+ public PageInfo PageInfo { get; set; }
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/Phase.cs b/StartGG/Client/Generated/Types/Phase.cs
index 6303ddab..13bca5c4 100644
--- a/StartGG/Client/Generated/Types/Phase.cs
+++ b/StartGG/Client/Generated/Types/Phase.cs
@@ -5,115 +5,121 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
public static class PhaseExtensions
{
[GraphQLMember("phaseGroups")]
- public static PhaseGroupConnection PhaseGroups(this Phase phase, [GraphQLArgument("query", "PhaseGroupPageQuery")] PhaseGroupPageQuery query = null)
+ public static PhaseGroupConnection PhaseGroups(this Phase phase,
+ [GraphQLArgument("query", "PhaseGroupPageQuery")] PhaseGroupPageQuery query = null)
{
return phase.GetMethodValue("phaseGroups", query);
}
[GraphQLMember("seeds")]
- public static SeedConnection Seeds(this Phase phase, [GraphQLArgument("query", "SeedPaginationQuery!")] SeedPaginationQuery query, [GraphQLArgument("eventId", "ID")] ID eventId = null)
+ public static SeedConnection Seeds(this Phase phase,
+ [GraphQLArgument("query", "SeedPaginationQuery!")] SeedPaginationQuery query,
+ [GraphQLArgument("eventId", "ID")] ID eventId = null)
{
return phase.GetMethodValue("seeds", query, eventId);
}
[GraphQLMember("sets")]
- public static SetConnection Sets(this Phase phase, [GraphQLArgument("page", "Int")] int? page = null, [GraphQLArgument("perPage", "Int")] int? perPage = null, [GraphQLArgument("sortType", "SetSortType")] SetSortType? sortType = null, [GraphQLArgument("filters", "SetFilters")] SetFilters filters = null)
+ public static SetConnection Sets(this Phase phase, [GraphQLArgument("page", "Int")] int? page = null,
+ [GraphQLArgument("perPage", "Int")] int? perPage = null,
+ [GraphQLArgument("sortType", "SetSortType")] SetSortType? sortType = null,
+ [GraphQLArgument("filters", "SetFilters")] SetFilters filters = null)
{
return phase.GetMethodValue("sets", page, perPage, sortType, filters);
}
-
}
///
-/// A phase in an event
+/// A phase in an event
///
-public partial class Phase : GraphQLTypeBase
+public class Phase : GraphQLTypeBase
{
+ private readonly LazyProperty _phaseGroups = new();
+
+ private readonly LazyProperty _seeds = new();
+
+ private readonly LazyProperty _sets = new();
+
[GraphQLMember("id")]
[JsonPropertyName("id")]
public ID Id { get; set; }
///
- /// The bracket type of this phase.
+ /// The bracket type of this phase.
///
[GraphQLMember("bracketType")]
[JsonPropertyName("bracketType")]
public BracketType? BracketType { get; set; }
///
- /// The Event that this phase belongs to
+ /// The Event that this phase belongs to
///
[GraphQLMember("event")]
[JsonPropertyName("event")]
public Event Event { get; set; }
///
- /// Number of phase groups in this phase
+ /// Number of phase groups in this phase
///
[GraphQLMember("groupCount")]
[JsonPropertyName("groupCount")]
public int? GroupCount { get; set; }
///
- /// Is the phase an exhibition or not.
+ /// Is the phase an exhibition or not.
///
[GraphQLMember("isExhibition")]
[JsonPropertyName("isExhibition")]
public bool? IsExhibition { get; set; }
///
- /// Name of phase e.g. Round 1 Pools
+ /// Name of phase e.g. Round 1 Pools
///
[GraphQLMember("name")]
[JsonPropertyName("name")]
public string Name { get; set; }
///
- /// The number of seeds this phase contains.
+ /// The number of seeds this phase contains.
///
[GraphQLMember("numSeeds")]
[JsonPropertyName("numSeeds")]
public int? NumSeeds { get; set; }
- private LazyProperty _phaseGroups = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
- public PhaseGroupConnection PhaseGroups => _phaseGroups.Value(() => GetFirstMethodValue("phaseGroups"));
+ public PhaseGroupConnection PhaseGroups =>
+ _phaseGroups.Value(() => GetFirstMethodValue("phaseGroups"));
///
- /// The relative order of this phase within an event
+ /// The relative order of this phase within an event
///
[GraphQLMember("phaseOrder")]
[JsonPropertyName("phaseOrder")]
public int? PhaseOrder { get; set; }
- private LazyProperty _seeds = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public SeedConnection Seeds => _seeds.Value(() => GetFirstMethodValue("seeds"));
- private LazyProperty _sets = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public SetConnection Sets => _sets.Value(() => GetFirstMethodValue("sets"));
///
- /// State of the phase
+ /// State of the phase
///
[GraphQLMember("state")]
[JsonPropertyName("state")]
@@ -122,5 +128,4 @@ public partial class Phase : GraphQLTypeBase
[GraphQLMember("waves")]
[JsonPropertyName("waves")]
public List Waves { get; set; }
-
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/RaceMatchConfig.cs b/StartGG/Client/Generated/Types/RaceMatchConfig.cs
index c9218172..d6644dd1 100644
--- a/StartGG/Client/Generated/Types/RaceMatchConfig.cs
+++ b/StartGG/Client/Generated/Types/RaceMatchConfig.cs
@@ -5,50 +5,47 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
///
-/// Race specific match configuration
+/// Race specific match configuration
///
-public partial class RaceMatchConfig : GraphQLTypeBase, MatchConfig
+public class RaceMatchConfig : GraphQLTypeBase, MatchConfig
{
- [GraphQLMember("id")]
- [JsonPropertyName("id")]
- public ID Id { get; set; }
-
- [GraphQLMember("bracketType")]
- [JsonPropertyName("bracketType")]
- public BracketType? BracketType { get; set; }
-
///
- /// Can players report results?
+ /// Can players report results?
///
[GraphQLMember("playerReportingEnabled")]
[JsonPropertyName("playerReportingEnabled")]
public bool? PlayerReportingEnabled { get; set; }
///
- /// Accepted methods of verification that players can use
+ /// Accepted methods of verification that players can use
///
[GraphQLMember("verificationMethods")]
[JsonPropertyName("verificationMethods")]
public List VerificationMethods { get; set; }
///
- /// Are players required to submit verification of their reported results?
+ /// Are players required to submit verification of their reported results?
///
[GraphQLMember("verificationRequired")]
[JsonPropertyName("verificationRequired")]
public bool? VerificationRequired { get; set; }
+ [GraphQLMember("id")]
+ [JsonPropertyName("id")]
+ public ID Id { get; set; }
+
+ [GraphQLMember("bracketType")]
+ [JsonPropertyName("bracketType")]
+ public BracketType? BracketType { get; set; }
+
[GraphQLMember("__typename")]
[JsonPropertyName("__typename")]
public string __TypeName { get; set; }
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/Set.cs b/StartGG/Client/Generated/Types/Set.cs
index 19e6fa03..40973fab 100644
--- a/StartGG/Client/Generated/Types/Set.cs
+++ b/StartGG/Client/Generated/Types/Set.cs
@@ -5,89 +5,92 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
public static class SetExtensions
{
[GraphQLMember("displayScore")]
- public static string DisplayScore(this Set set, [GraphQLArgument("mainEntrantId", "ID")] ID mainEntrantId = null)
+ public static string DisplayScore(this Set set, [GraphQLArgument("mainEntrantId", "ID")] ID mainEntrantId = null)
{
return set.GetMethodValue("displayScore", mainEntrantId);
}
[GraphQLMember("game")]
- public static Game Game(this Set set, [GraphQLArgument("orderNum", "Int!")] int orderNum)
+ public static Game Game(this Set set, [GraphQLArgument("orderNum", "Int!")] int orderNum)
{
return set.GetMethodValue("game", orderNum);
}
[GraphQLMember("images")]
- public static List Images(this Set set, [GraphQLArgument("type", "String")] string type = null)
+ public static List Images(this Set set, [GraphQLArgument("type", "String")] string type = null)
{
return set.GetMethodValue>("images", type);
}
[GraphQLMember("slots")]
- public static List Slots(this Set set, [GraphQLArgument("includeByes", "Boolean")] bool? includeByes = null)
+ public static List Slots(this Set set,
+ [GraphQLArgument("includeByes", "Boolean")] bool? includeByes = null)
{
return set.GetMethodValue>("slots", includeByes);
}
-
}
///
-/// A set
+/// A set
///
-public partial class Set : GraphQLTypeBase
+public class Set : GraphQLTypeBase
{
+ private readonly LazyProperty _displayScore = new();
+
+ private readonly LazyProperty _game = new();
+
+ private readonly LazyProperty> _images = new();
+
+ private readonly LazyProperty> _slots = new();
+
[GraphQLMember("id")]
[JsonPropertyName("id")]
public ID Id { get; set; }
///
- /// The time this set was marked as completed
+ /// The time this set was marked as completed
///
[GraphQLMember("completedAt")]
[JsonPropertyName("completedAt")]
public Timestamp CompletedAt { get; set; }
///
- /// The time this set was created
+ /// The time this set was created
///
[GraphQLMember("createdAt")]
[JsonPropertyName("createdAt")]
public Timestamp CreatedAt { get; set; }
- private LazyProperty _displayScore = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public string DisplayScore => _displayScore.Value(() => GetFirstMethodValue("displayScore"));
///
- /// Event that this set belongs to.
+ /// Event that this set belongs to.
///
[GraphQLMember("event")]
[JsonPropertyName("event")]
public Event Event { get; set; }
///
- /// Full round text of this set.
+ /// Full round text of this set.
///
[GraphQLMember("fullRoundText")]
[JsonPropertyName("fullRoundText")]
public string FullRoundText { get; set; }
- private LazyProperty _game = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public Game Game => _game.Value(() => GetFirstMethodValue("game"));
@@ -96,22 +99,21 @@ public partial class Set : GraphQLTypeBase
public List Games { get; set; }
///
- /// Whether this set contains a placeholder entrant
+ /// Whether this set contains a placeholder entrant
///
[GraphQLMember("hasPlaceholder")]
[JsonPropertyName("hasPlaceholder")]
public bool? HasPlaceholder { get; set; }
///
- /// The letters that describe a unique identifier within the pool. Eg. F, AT
+ /// The letters that describe a unique identifier within the pool. Eg. F, AT
///
[GraphQLMember("identifier")]
[JsonPropertyName("identifier")]
public string Identifier { get; set; }
- private LazyProperty> _images = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public List Images => _images.Value(() => GetFirstMethodValue>("images"));
@@ -120,42 +122,42 @@ public partial class Set : GraphQLTypeBase
public int? LPlacement { get; set; }
///
- /// Phase group that this Set belongs to.
+ /// Phase group that this Set belongs to.
///
[GraphQLMember("phaseGroup")]
[JsonPropertyName("phaseGroup")]
public PhaseGroup PhaseGroup { get; set; }
///
- /// The sets that are affected from resetting this set
+ /// The sets that are affected from resetting this set
///
[GraphQLMember("resetAffectedData")]
[JsonPropertyName("resetAffectedData")]
public ResetAffectedData ResetAffectedData { get; set; }
///
- /// The round number of the set. Negative numbers are losers bracket
+ /// The round number of the set. Negative numbers are losers bracket
///
[GraphQLMember("round")]
[JsonPropertyName("round")]
public int? Round { get; set; }
///
- /// Indicates whether the set is in best of or total games mode. This instructs
-/// which field is used to figure out how many games are in this set.
+ /// Indicates whether the set is in best of or total games mode. This instructs
+ /// which field is used to figure out how many games are in this set.
///
[GraphQLMember("setGamesType")]
[JsonPropertyName("setGamesType")]
public int? SetGamesType { get; set; }
- private LazyProperty> _slots = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public List Slots => _slots.Value(() => GetFirstMethodValue>("slots"));
///
- /// The start time of the Set. If there is no startAt time on the Set, will pull it from phaseGroup rounds configuration.
+ /// The start time of the Set. If there is no startAt time on the Set, will pull it from phaseGroup rounds
+ /// configuration.
///
[GraphQLMember("startAt")]
[JsonPropertyName("startAt")]
@@ -170,28 +172,28 @@ public partial class Set : GraphQLTypeBase
public int? State { get; set; }
///
- /// Tournament event station for a set
+ /// Tournament event station for a set
///
[GraphQLMember("station")]
[JsonPropertyName("station")]
public Stations Station { get; set; }
///
- /// Tournament event stream for a set
+ /// Tournament event stream for a set
///
[GraphQLMember("stream")]
[JsonPropertyName("stream")]
public Streams Stream { get; set; }
///
- /// If setGamesType is in total games mode, this defined the number of games in the set.
+ /// If setGamesType is in total games mode, this defined the number of games in the set.
///
[GraphQLMember("totalGames")]
[JsonPropertyName("totalGames")]
public int? TotalGames { get; set; }
///
- /// Url of a VOD for this set
+ /// Url of a VOD for this set
///
[GraphQLMember("vodUrl")]
[JsonPropertyName("vodUrl")]
@@ -204,5 +206,4 @@ public partial class Set : GraphQLTypeBase
[GraphQLMember("winnerId")]
[JsonPropertyName("winnerId")]
public int? WinnerId { get; set; }
-
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/SetSlot.cs b/StartGG/Client/Generated/Types/SetSlot.cs
index 6165bbe5..a9172ee2 100644
--- a/StartGG/Client/Generated/Types/SetSlot.cs
+++ b/StartGG/Client/Generated/Types/SetSlot.cs
@@ -5,19 +5,16 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
///
-/// A slot in a set where a seed currently or will eventually exist in order to participate in the set.
+/// A slot in a set where a seed currently or will eventually exist in order to participate in the set.
///
-public partial class SetSlot : GraphQLTypeBase
+public class SetSlot : GraphQLTypeBase
{
[GraphQLMember("id")]
[JsonPropertyName("id")]
@@ -28,21 +25,21 @@ public partial class SetSlot : GraphQLTypeBase
public Entrant Entrant { get; set; }
///
- /// Pairs with prereqType, is the ID of the prereq.
+ /// Pairs with prereqType, is the ID of the prereq.
///
[GraphQLMember("prereqId")]
[JsonPropertyName("prereqId")]
public string PrereqId { get; set; }
///
- /// Given a set prereq type, defines the placement required in the origin set to end up in this slot.
+ /// Given a set prereq type, defines the placement required in the origin set to end up in this slot.
///
[GraphQLMember("prereqPlacement")]
[JsonPropertyName("prereqPlacement")]
public int? PrereqPlacement { get; set; }
///
- /// Describes where the entity in this slot comes from.
+ /// Describes where the entity in this slot comes from.
///
[GraphQLMember("prereqType")]
[JsonPropertyName("prereqType")]
@@ -53,17 +50,16 @@ public partial class SetSlot : GraphQLTypeBase
public Seed Seed { get; set; }
///
- /// The index of the slot. Unique per set.
+ /// The index of the slot. Unique per set.
///
[GraphQLMember("slotIndex")]
[JsonPropertyName("slotIndex")]
public int? SlotIndex { get; set; }
///
- /// The standing within this set for the seed currently assigned to this slot.
+ /// The standing within this set for the seed currently assigned to this slot.
///
[GraphQLMember("standing")]
[JsonPropertyName("standing")]
public Standing Standing { get; set; }
-
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/ShopLevel.cs b/StartGG/Client/Generated/Types/ShopLevel.cs
index d336f9c3..4666af9f 100644
--- a/StartGG/Client/Generated/Types/ShopLevel.cs
+++ b/StartGG/Client/Generated/Types/ShopLevel.cs
@@ -5,30 +5,28 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
public static class ShopLevelExtensions
{
[GraphQLMember("images")]
- public static List Images(this ShopLevel shopLevel, [GraphQLArgument("type", "String")] string type = null)
+ public static List Images(this ShopLevel shopLevel, [GraphQLArgument("type", "String")] string type = null)
{
return shopLevel.GetMethodValue>("images", type);
}
-
}
///
-/// A shop level
+/// A shop level
///
-public partial class ShopLevel : GraphQLTypeBase
+public class ShopLevel : GraphQLTypeBase
{
+ private readonly LazyProperty> _images = new();
+
[GraphQLMember("id")]
[JsonPropertyName("id")]
public ID Id { get; set; }
@@ -45,14 +43,12 @@ public partial class ShopLevel : GraphQLTypeBase
[JsonPropertyName("goalAmount")]
public double? GoalAmount { get; set; }
- private LazyProperty> _images = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public List Images => _images.Value(() => GetFirstMethodValue>("images"));
[GraphQLMember("name")]
[JsonPropertyName("name")]
public string Name { get; set; }
-
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/ShopOrderMessageConnection.cs b/StartGG/Client/Generated/Types/ShopOrderMessageConnection.cs
index 58388535..a524dd5c 100644
--- a/StartGG/Client/Generated/Types/ShopOrderMessageConnection.cs
+++ b/StartGG/Client/Generated/Types/ShopOrderMessageConnection.cs
@@ -5,23 +5,19 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
-public partial class ShopOrderMessageConnection : GraphQLTypeBase, Linq2GraphQL.Client.Common.ICursorPaging
+public class ShopOrderMessageConnection : GraphQLTypeBase, ICursorPaging
{
- [GraphQLMember("pageInfo")]
- [JsonPropertyName("pageInfo")]
- public Linq2GraphQL.Client.Common.PageInfo PageInfo { get; set; }
-
[GraphQLMember("nodes")]
[JsonPropertyName("nodes")]
public List Nodes { get; set; }
-}
+ [GraphQLMember("pageInfo")]
+ [JsonPropertyName("pageInfo")]
+ public PageInfo PageInfo { get; set; }
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/StreamQueue.cs b/StartGG/Client/Generated/Types/StreamQueue.cs
index d61fd50e..ff76d644 100644
--- a/StartGG/Client/Generated/Types/StreamQueue.cs
+++ b/StartGG/Client/Generated/Types/StreamQueue.cs
@@ -5,36 +5,32 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
///
-/// A Stream queue object
+/// A Stream queue object
///
-public partial class StreamQueue : GraphQLTypeBase
+public class StreamQueue : GraphQLTypeBase
{
[GraphQLMember("id")]
[JsonPropertyName("id")]
public string Id { get; set; }
///
- /// The sets on the stream
+ /// The sets on the stream
///
[GraphQLMember("sets")]
[JsonPropertyName("sets")]
public List Sets { get; set; }
///
- /// The stream on the queue
+ /// The stream on the queue
///
[GraphQLMember("stream")]
[JsonPropertyName("stream")]
public Streams Stream { get; set; }
-
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/TeamActionSet.cs b/StartGG/Client/Generated/Types/TeamActionSet.cs
index 25496765..54aa6db2 100644
--- a/StartGG/Client/Generated/Types/TeamActionSet.cs
+++ b/StartGG/Client/Generated/Types/TeamActionSet.cs
@@ -5,19 +5,16 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
///
-/// A set of actions available for a team to take
+/// A set of actions available for a team to take
///
-public partial class TeamActionSet : GraphQLTypeBase, ActionSet
+public class TeamActionSet : GraphQLTypeBase, ActionSet
{
[GraphQLMember("id")]
[JsonPropertyName("id")]
@@ -26,4 +23,4 @@ public partial class TeamActionSet : GraphQLTypeBase, ActionSet
[GraphQLMember("__typename")]
[JsonPropertyName("__typename")]
public string __TypeName { get; set; }
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/TournamentConnection.cs b/StartGG/Client/Generated/Types/TournamentConnection.cs
index e7b3d5e1..68512e94 100644
--- a/StartGG/Client/Generated/Types/TournamentConnection.cs
+++ b/StartGG/Client/Generated/Types/TournamentConnection.cs
@@ -5,23 +5,19 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
-public partial class TournamentConnection : GraphQLTypeBase, Linq2GraphQL.Client.Common.ICursorPaging
+public class TournamentConnection : GraphQLTypeBase, ICursorPaging
{
- [GraphQLMember("pageInfo")]
- [JsonPropertyName("pageInfo")]
- public Linq2GraphQL.Client.Common.PageInfo PageInfo { get; set; }
-
[GraphQLMember("nodes")]
[JsonPropertyName("nodes")]
public List Nodes { get; set; }
-}
+ [GraphQLMember("pageInfo")]
+ [JsonPropertyName("pageInfo")]
+ public PageInfo PageInfo { get; set; }
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/User.cs b/StartGG/Client/Generated/Types/User.cs
index 906ea6c6..f5554ad5 100644
--- a/StartGG/Client/Generated/Types/User.cs
+++ b/StartGG/Client/Generated/Types/User.cs
@@ -5,59 +5,69 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
public static class UserExtensions
{
[GraphQLMember("authorizations")]
- public static List Authorizations(this User user, [GraphQLArgument("types", "[SocialConnectionType]")] List types = null)
+ public static List Authorizations(this User user,
+ [GraphQLArgument("types", "[SocialConnectionType]")] List types = null)
{
return user.GetMethodValue>("authorizations", types);
}
[GraphQLMember("events")]
- public static EventConnection Events(this User user, [GraphQLArgument("query", "UserEventsPaginationQuery")] UserEventsPaginationQuery query = null)
+ public static EventConnection Events(this User user,
+ [GraphQLArgument("query", "UserEventsPaginationQuery")] UserEventsPaginationQuery query = null)
{
return user.GetMethodValue("events", query);
}
[GraphQLMember("images")]
- public static List Images(this User user, [GraphQLArgument("type", "String")] string type = null)
+ public static List Images(this User user, [GraphQLArgument("type", "String")] string type = null)
{
return user.GetMethodValue>("images", type);
}
[GraphQLMember("leagues")]
- public static LeagueConnection Leagues(this User user, [GraphQLArgument("query", "UserLeaguesPaginationQuery")] UserLeaguesPaginationQuery query = null)
+ public static LeagueConnection Leagues(this User user,
+ [GraphQLArgument("query", "UserLeaguesPaginationQuery")] UserLeaguesPaginationQuery query = null)
{
return user.GetMethodValue("leagues", query);
}
[GraphQLMember("tournaments")]
- public static TournamentConnection Tournaments(this User user, [GraphQLArgument("query", "UserTournamentsPaginationQuery")] UserTournamentsPaginationQuery query = null)
+ public static TournamentConnection Tournaments(this User user,
+ [GraphQLArgument("query", "UserTournamentsPaginationQuery")] UserTournamentsPaginationQuery query = null)
{
return user.GetMethodValue("tournaments", query);
}
-
}
///
-/// A user
+/// A user
///
-public partial class User : GraphQLTypeBase
+public class User : GraphQLTypeBase
{
- private LazyProperty> _authorizations = new();
+ private readonly LazyProperty> _authorizations = new();
+
+ private readonly LazyProperty _events = new();
+
+ private readonly LazyProperty> _images = new();
+
+ private readonly LazyProperty _leagues = new();
+
+ private readonly LazyProperty _tournaments = new();
+
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
- public List Authorizations => _authorizations.Value(() => GetFirstMethodValue>("authorizations"));
+ public List Authorizations =>
+ _authorizations.Value(() => GetFirstMethodValue>("authorizations"));
[GraphQLMember("id")]
[JsonPropertyName("id")]
@@ -68,14 +78,14 @@ public partial class User : GraphQLTypeBase
public string Bio { get; set; }
///
- /// Public facing user birthday that respects user publishing settings
+ /// Public facing user birthday that respects user publishing settings
///
[GraphQLMember("birthday")]
[JsonPropertyName("birthday")]
public string Birthday { get; set; }
///
- /// Uniquely identifying token for user. Same as the hashed part of the slug
+ /// Uniquely identifying token for user. Same as the hashed part of the slug
///
[GraphQLMember("discriminator")]
[JsonPropertyName("discriminator")]
@@ -85,9 +95,8 @@ public partial class User : GraphQLTypeBase
[JsonPropertyName("email")]
public string Email { get; set; }
- private LazyProperty _events = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public EventConnection Events => _events.Value(() => GetFirstMethodValue("events"));
@@ -95,34 +104,32 @@ public partial class User : GraphQLTypeBase
[JsonPropertyName("genderPronoun")]
public string GenderPronoun { get; set; }
- private LazyProperty> _images = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public List Images => _images.Value(() => GetFirstMethodValue>("images"));
- private LazyProperty _leagues = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public LeagueConnection Leagues => _leagues.Value(() => GetFirstMethodValue("leagues"));
///
- /// Public location info for this user
+ /// Public location info for this user
///
[GraphQLMember("location")]
[JsonPropertyName("location")]
public Address Location { get; set; }
///
- /// Public facing user name that respects user publishing settings
+ /// Public facing user name that respects user publishing settings
///
[GraphQLMember("name")]
[JsonPropertyName("name")]
public string Name { get; set; }
///
- /// player for user
+ /// player for user
///
[GraphQLMember("player")]
[JsonPropertyName("player")]
@@ -132,10 +139,9 @@ public partial class User : GraphQLTypeBase
[JsonPropertyName("slug")]
public string Slug { get; set; }
- private LazyProperty _tournaments = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
- public TournamentConnection Tournaments => _tournaments.Value(() => GetFirstMethodValue("tournaments"));
-
-}
+ public TournamentConnection Tournaments =>
+ _tournaments.Value(() => GetFirstMethodValue("tournaments"));
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/Videogame.cs b/StartGG/Client/Generated/Types/Videogame.cs
index c5ae0380..ca81133a 100644
--- a/StartGG/Client/Generated/Types/Videogame.cs
+++ b/StartGG/Client/Generated/Types/Videogame.cs
@@ -5,36 +5,34 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
public static class VideogameExtensions
{
[GraphQLMember("images")]
- public static List Images(this Videogame videogame, [GraphQLArgument("type", "String")] string type = null)
+ public static List Images(this Videogame videogame, [GraphQLArgument("type", "String")] string type = null)
{
return videogame.GetMethodValue>("images", type);
}
-
}
///
-/// A videogame
+/// A videogame
///
-public partial class Videogame : GraphQLTypeBase
+public class Videogame : GraphQLTypeBase
{
+ private readonly LazyProperty> _images = new();
+
[GraphQLMember("id")]
[JsonPropertyName("id")]
public ID Id { get; set; }
///
- /// All characters for this videogame
+ /// All characters for this videogame
///
[GraphQLMember("characters")]
[JsonPropertyName("characters")]
@@ -44,9 +42,8 @@ public partial class Videogame : GraphQLTypeBase
[JsonPropertyName("displayName")]
public string DisplayName { get; set; }
- private LazyProperty> _images = new();
///
- /// Do not use in Query, only to retrive result
+ /// Do not use in Query, only to retrive result
///
public List Images => _images.Value(() => GetFirstMethodValue>("images"));
@@ -59,10 +56,9 @@ public partial class Videogame : GraphQLTypeBase
public string Slug { get; set; }
///
- /// All stages for this videogame
+ /// All stages for this videogame
///
[GraphQLMember("stages")]
[JsonPropertyName("stages")]
public List Stages { get; set; }
-
-}
+}
\ No newline at end of file
diff --git a/StartGG/Client/Generated/Types/VideogameConnection.cs b/StartGG/Client/Generated/Types/VideogameConnection.cs
index 83c81adf..ecb079bd 100644
--- a/StartGG/Client/Generated/Types/VideogameConnection.cs
+++ b/StartGG/Client/Generated/Types/VideogameConnection.cs
@@ -5,23 +5,19 @@
// Url: https://linq2graphql.com
//---------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
using System.Text.Json.Serialization;
using Linq2GraphQL.Client;
using Linq2GraphQL.Client.Common;
namespace StartGG.Client;
-
-public partial class VideogameConnection : GraphQLTypeBase, Linq2GraphQL.Client.Common.ICursorPaging
+public class VideogameConnection : GraphQLTypeBase, ICursorPaging
{
- [GraphQLMember("pageInfo")]
- [JsonPropertyName("pageInfo")]
- public Linq2GraphQL.Client.Common.PageInfo PageInfo { get; set; }
-
[GraphQLMember("nodes")]
[JsonPropertyName("nodes")]
public List Nodes { get; set; }
-}
+ [GraphQLMember("pageInfo")]
+ [JsonPropertyName("pageInfo")]
+ public PageInfo PageInfo { get; set; }
+}
\ No newline at end of file
diff --git a/StartGG/StartGG.csproj b/StartGG/StartGG.csproj
index 4d5ca064..183ad3ed 100644
--- a/StartGG/StartGG.csproj
+++ b/StartGG/StartGG.csproj
@@ -1,14 +1,14 @@
-
- Exe
- net8.0
- enable
- disable
-
+
+ Exe
+ net9.0
+ enable
+ disable
+
-
-
-
+
+
+
diff --git a/docs/Linq2GraphQL.Docs/App.razor b/docs/Linq2GraphQL.Docs/App.razor
index d24fd397..54e55066 100644
--- a/docs/Linq2GraphQL.Docs/App.razor
+++ b/docs/Linq2GraphQL.Docs/App.razor
@@ -1,10 +1,10 @@
-
-
+
+
- @* Not found *@
+ @* Not found *@