mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 18:37:18 +02:00
31 lines
1.2 KiB
C#
31 lines
1.2 KiB
C#
// <auto-generated/>
|
|
#nullable enable
|
|
|
|
namespace WotBlitzStatisticsPro.Blazor.GraphQl
|
|
{
|
|
[global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "12.12.1.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
|
|
{
|
|
"RU" => RequestLanguage.Ru,
|
|
"EN" => RequestLanguage.En,
|
|
"DE" => RequestLanguage.De,
|
|
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
|
}
|
|
|
|
public global::System.Object Format(global::System.Object? runtimeValue)
|
|
{
|
|
return runtimeValue switch
|
|
{
|
|
RequestLanguage.Ru => "RU",
|
|
RequestLanguage.En => "EN",
|
|
RequestLanguage.De => "DE",
|
|
_ => throw new global::StrawberryShake.GraphQLClientException()};
|
|
}
|
|
}
|
|
}
|