Files
WotBlitzStatisticsBlazor/WotBlitzStatisticsPro.Blazor/Generated/WargamingAuthenticationQueryQuery.WotBlitzStatisticsProClient.StrawberryShake.cs
T

60 lines
3.6 KiB
C#
Raw Normal View History

// <auto-generated/>
#nullable enable
namespace WotBlitzStatisticsPro.Blazor.GraphQl
{
/// <summary>
/// Represents the operation service of the WargamingAuthenticationQuery GraphQL operation
/// <code>
/// query WargamingAuthenticationQuery($realmType: RealmType!) {
/// loginUrl(realmType: $realmType)
/// }
/// </code>
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")]
public partial class WargamingAuthenticationQueryQuery : global::WotBlitzStatisticsPro.Blazor.GraphQl.IWargamingAuthenticationQueryQuery
{
private readonly global::StrawberryShake.IOperationExecutor<IWargamingAuthenticationQueryResult> _operationExecutor;
private readonly global::StrawberryShake.Serialization.IInputValueFormatter _realmTypeFormatter;
public WargamingAuthenticationQueryQuery(global::StrawberryShake.IOperationExecutor<IWargamingAuthenticationQueryResult> operationExecutor, global::StrawberryShake.Serialization.ISerializerResolver serializerResolver)
{
_operationExecutor = operationExecutor ?? throw new global::System.ArgumentNullException(nameof(operationExecutor));
_realmTypeFormatter = serializerResolver.GetInputValueFormatter("RealmType");
}
global::System.Type global::StrawberryShake.IOperationRequestFactory.ResultType => typeof(IWargamingAuthenticationQueryResult);
public async global::System.Threading.Tasks.Task<global::StrawberryShake.IOperationResult<IWargamingAuthenticationQueryResult>> ExecuteAsync(global::WotBlitzStatisticsPro.Blazor.GraphQl.RealmType realmType, global::System.Threading.CancellationToken cancellationToken = default)
{
var request = CreateRequest(realmType);
return await _operationExecutor.ExecuteAsync(request, cancellationToken).ConfigureAwait(false);
}
public global::System.IObservable<global::StrawberryShake.IOperationResult<IWargamingAuthenticationQueryResult>> Watch(global::WotBlitzStatisticsPro.Blazor.GraphQl.RealmType realmType, global::StrawberryShake.ExecutionStrategy? strategy = null)
{
var request = CreateRequest(realmType);
return _operationExecutor.Watch(request, strategy);
}
private global::StrawberryShake.OperationRequest CreateRequest(global::WotBlitzStatisticsPro.Blazor.GraphQl.RealmType realmType)
{
var variables = new global::System.Collections.Generic.Dictionary<global::System.String, global::System.Object?>();
variables.Add("realmType", FormatRealmType(realmType));
return CreateRequest(variables);
}
private global::StrawberryShake.OperationRequest CreateRequest(global::System.Collections.Generic.IReadOnlyDictionary<global::System.String, global::System.Object?>? variables)
{
return new global::StrawberryShake.OperationRequest(id: WargamingAuthenticationQueryQueryDocument.Instance.Hash.Value, name: "WargamingAuthenticationQuery", document: WargamingAuthenticationQueryQueryDocument.Instance, strategy: global::StrawberryShake.RequestStrategy.Default, variables: variables);
}
private global::System.Object? FormatRealmType(global::WotBlitzStatisticsPro.Blazor.GraphQl.RealmType value)
{
return _realmTypeFormatter.Format(value);
}
global::StrawberryShake.OperationRequest global::StrawberryShake.IOperationRequestFactory.Create(global::System.Collections.Generic.IReadOnlyDictionary<global::System.String, global::System.Object?>? variables)
{
return CreateRequest(variables!);
}
}
}