2021-05-15 17:36:35 +02:00
|
|
|
// <auto-generated/>
|
|
|
|
|
#nullable enable
|
|
|
|
|
|
|
|
|
|
namespace WotBlitzStatisticsPro.Blazor.GraphQl
|
|
|
|
|
{
|
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")]
|
|
|
|
|
public partial class RequestLanguageSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser<global::System.String, RequestLanguage>
|
|
|
|
|
{
|
|
|
|
|
public global::System.String TypeName => "RequestLanguage";
|
|
|
|
|
public RequestLanguage Parse(global::System.String serializedValue)
|
|
|
|
|
{
|
|
|
|
|
return serializedValue switch
|
|
|
|
|
{
|
2022-05-04 10:33:51 +02:00
|
|
|
"RU" => RequestLanguage.Ru,
|
|
|
|
|
"EN" => RequestLanguage.En,
|
|
|
|
|
"DE" => RequestLanguage.De,
|
|
|
|
|
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
2021-05-15 17:36:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public global::System.Object Format(global::System.Object? runtimeValue)
|
|
|
|
|
{
|
|
|
|
|
return runtimeValue switch
|
|
|
|
|
{
|
2022-05-04 10:33:51 +02:00
|
|
|
RequestLanguage.Ru => "RU",
|
|
|
|
|
RequestLanguage.En => "EN",
|
|
|
|
|
RequestLanguage.De => "DE",
|
|
|
|
|
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
2021-05-15 17:36:35 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|