From 6ed4738197d8d415c8338486550b655a43144785 Mon Sep 17 00:00:00 2001 From: Mikhail Shabanov Date: Fri, 28 May 2021 16:56:12 +0200 Subject: [PATCH] chore: new client methadata --- ...litzStatisticsProClient.StrawberryShake.cs | 1 + ...litzStatisticsProClient.StrawberryShake.cs | 11 +- ...litzStatisticsProClient.StrawberryShake.cs | 2 +- ...litzStatisticsProClient.StrawberryShake.cs | 77 ++++- ...litzStatisticsProClient.StrawberryShake.cs | 120 +++++++- ...litzStatisticsProClient.StrawberryShake.cs | 92 ++++++ ...litzStatisticsProClient.StrawberryShake.cs | 13 + ...litzStatisticsProClient.StrawberryShake.cs | 169 +++++++++-- ...litzStatisticsProClient.StrawberryShake.cs | 30 ++ ...litzStatisticsProClient.StrawberryShake.cs | 77 ++++- ...litzStatisticsProClient.StrawberryShake.cs | 81 +++++- ...litzStatisticsProClient.StrawberryShake.cs | 178 ++++++++++-- ...litzStatisticsProClient.StrawberryShake.cs | 225 +++++++++++++++ ...litzStatisticsProClient.StrawberryShake.cs | 265 +++++++++++++++--- ...litzStatisticsProClient.StrawberryShake.cs | 28 ++ ...litzStatisticsProClient.StrawberryShake.cs | 98 ++++++- ...litzStatisticsProClient.StrawberryShake.cs | 81 ++++++ ...litzStatisticsProClient.StrawberryShake.cs | 6 +- ...litzStatisticsProClient.StrawberryShake.cs | 6 +- ...litzStatisticsProClient.StrawberryShake.cs | 4 +- ...litzStatisticsProClient.StrawberryShake.cs | 78 +++++- ...litzStatisticsProClient.StrawberryShake.cs | 24 +- ...litzStatisticsProClient.StrawberryShake.cs | 140 +++++++-- .../graphql/PlayerInfo.graphql | 76 ++++- .../graphql/schema.graphql | 6 +- 25 files changed, 1697 insertions(+), 191 deletions(-) create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo_ClanInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/MarkOfMastery.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_ClanInfo_ClanInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/Serialization/MarkOfMasterySerializer.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/State/ClanInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs diff --git a/WotBlitzStatisticsPro.Blazor/Generated/DependencyInjection/WotBlitzStatisticsProClientServiceCollectionExtensions.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/DependencyInjection/WotBlitzStatisticsProClientServiceCollectionExtensions.WotBlitzStatisticsProClient.StrawberryShake.cs index 133e5b9..d2fdb92 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/DependencyInjection/WotBlitzStatisticsProClientServiceCollectionExtensions.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/DependencyInjection/WotBlitzStatisticsProClientServiceCollectionExtensions.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -34,6 +34,7 @@ namespace Microsoft.Extensions.DependencyInjection }); global::Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(services); global::Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(services); + global::Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(services); global::Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(services); global::Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(services); global::Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(services); diff --git a/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersResult.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersResult.WotBlitzStatisticsProClient.StrawberryShake.cs index 4accd23..1c80c2a 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersResult.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersResult.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -6,7 +6,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] public partial class FindPlayersResult : global::System.IEquatable, IFindPlayersResult { - public FindPlayersResult(global::System.Collections.Generic.IReadOnlyList players) + public FindPlayersResult(global::System.Collections.Generic.IReadOnlyList? players) { Players = players; } @@ -14,7 +14,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// /// Finds Wargaming accounts by nick /// - public global::System.Collections.Generic.IReadOnlyList Players { get; } + public global::System.Collections.Generic.IReadOnlyList? Players { get; } public virtual global::System.Boolean Equals(FindPlayersResult? other) { @@ -61,9 +61,12 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl unchecked { int hash = 5; - foreach (var Players_elm in Players) + if (Players != null) { - hash ^= 397 * Players_elm.GetHashCode(); + foreach (var Players_elm in Players) + { + hash ^= 397 * Players_elm.GetHashCode(); + } } return hash; diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayersResult.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayersResult.WotBlitzStatisticsProClient.StrawberryShake.cs index 890bb14..872f7d9 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayersResult.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayersResult.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,6 +9,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// /// Finds Wargaming accounts by nick /// - public global::System.Collections.Generic.IReadOnlyList Players { get; } + public global::System.Collections.Generic.IReadOnlyList? Players { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs index 8a95a9b..9df6e85 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IPlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -10,32 +10,93 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// accountInfo(accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { /// __typename /// accountId - /// nickname /// createdAt /// lastBattleTime + /// nickname + /// maxFragsTankId + /// maxXpTankId /// battles + /// capturePoints + /// damageDealt + /// damageReceived + /// droppedCapturePoints + /// frags + /// frags8P + /// hits + /// losses + /// maxFrags + /// maxXp + /// shots + /// spotted + /// survivedBattles + /// winAndSurvived + /// wins + /// xp + /// wn7 /// winRate /// avgDamage /// avgXp - /// avgTier /// damageCoefficient /// survivalRate + /// avgTier + /// clanInfo { + /// __typename + /// clanId + /// joinedAt + /// role + /// roleLocalized + /// name + /// createdAt + /// creatorId + /// creatorName + /// description + /// descriptionHtml + /// leaderId + /// leaderName + /// membersCount + /// motto + /// tag + /// updatedAt + /// } /// tanks { /// __typename /// tankId - /// name - /// tankNation - /// tankType - /// tier - /// isPremium + /// battleLifeTimeInSeconds /// lastBattleTime + /// markOfMastery /// battles + /// capturePoints + /// damageDealt + /// damageReceived + /// droppedCapturePoints + /// frags + /// frags8P + /// hits + /// losses + /// maxFrags + /// maxXp + /// shots + /// spotted + /// survivedBattles + /// winAndSurvived + /// wins + /// xp + /// wn7 /// winRate /// avgDamage /// avgXp - /// avgBattleLifeTimeInMinutes /// damageCoefficient /// survivalRate + /// avgBattleLifeTimeInMinutes + /// name + /// tankNationId + /// tankNation + /// tier + /// tankTypeId + /// tankType + /// isPremium + /// previewImage + /// normalImage /// } /// } /// } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo.WotBlitzStatisticsProClient.StrawberryShake.cs index 1b997d6..5f6cd1b 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -14,11 +14,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Int64 AccountId { get; } - /// - /// Player's nick - /// - public global::System.String? Nickname { get; } - /// /// Account creation date /// @@ -29,11 +24,111 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.DateTimeOffset LastBattleTime { get; } + /// + /// Player's nick + /// + public global::System.String? Nickname { get; } + + /// + /// Tank id, which kills max frags per battle + /// + public global::System.Int64 MaxFragsTankId { get; } + + /// + /// Tank Id which created max experience per battle + /// + public global::System.Int64 MaxXpTankId { get; } + /// /// Battles count /// public global::System.Int64 Battles { get; } + /// + /// Capture points + /// + public global::System.Int64 CapturePoints { get; } + + /// + /// Total damage amount + /// + public global::System.Int64 DamageDealt { get; } + + /// + /// Total amount of received damage + /// + public global::System.Int64 DamageReceived { get; } + + /// + /// Dropped capture points + /// + public global::System.Int64 DroppedCapturePoints { get; } + + /// + /// Total amount of frags + /// + public global::System.Int64 Frags { get; } + + /// + /// Total amount of fras grater ten 8 lvl + /// + public global::System.Int64 Frags8P { get; } + + /// + /// Total amount of hits + /// + public global::System.Int64 Hits { get; } + + /// + /// Total amount of losses + /// + public global::System.Int64 Losses { get; } + + /// + /// Max frags per battle + /// + public global::System.Int64 MaxFrags { get; } + + /// + /// Max experience per battle + /// + public global::System.Int64 MaxXp { get; } + + /// + /// Total shots count + /// + public global::System.Int64 Shots { get; } + + /// + /// Total count of spotted vehicles + /// + public global::System.Int64 Spotted { get; } + + /// + /// Total count of survived battles + /// + public global::System.Int64 SurvivedBattles { get; } + + /// + /// Total count of survived and winned battles + /// + public global::System.Int64 WinAndSurvived { get; } + + /// + /// Total wins count + /// + public global::System.Int64 Wins { get; } + + /// + /// Total amount of experience + /// + public global::System.Int64 Xp { get; } + + /// + /// Wn7 coefficient + /// + public global::System.Double Wn7 { get; } + /// /// Player's win rate /// @@ -49,11 +144,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Decimal AvgXp { get; } - /// - /// Average tier - /// - public global::System.Double AvgTier { get; } - /// /// Damage coefficient /// @@ -64,6 +154,16 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Decimal SurvivalRate { get; } + /// + /// Average tier + /// + public global::System.Double AvgTier { get; } + + /// + /// Clan info + /// + public global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo_ClanInfo? ClanInfo { get; } + /// /// All player's tanks /// diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..51633fb --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,92 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Clan information + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public interface IPlayer_AccountInfo_ClanInfo + { + /// + /// Clan ID + /// + public global::System.Int64 ClanId { get; } + + /// + /// Date of joining clan + /// + public global::System.DateTimeOffset JoinedAt { get; } + + /// + /// Player clan role ID + /// + public global::System.String? Role { get; } + + /// + /// Player clan role + /// + public global::System.String RoleLocalized { get; } + + /// + /// Clan name + /// + public global::System.String? Name { get; } + + /// + /// Date of clan creation + /// + public global::System.DateTimeOffset CreatedAt { get; } + + /// + /// Clan creator account id + /// + public global::System.Int64? CreatorId { get; } + + /// + /// Clan creator nick + /// + public global::System.String? CreatorName { get; } + + /// + /// Clan description + /// + public global::System.String? Description { get; } + + /// + /// Html Clan description + /// + public global::System.String? DescriptionHtml { get; } + + /// + /// Clan commander accountId + /// + public global::System.Int64? LeaderId { get; } + + /// + /// Clan commander nick + /// + public global::System.String? LeaderName { get; } + + /// + /// Clan members count + /// + public global::System.Int64? MembersCount { get; } + + /// + /// Clan motto + /// + public global::System.String? Motto { get; } + + /// + /// Clan tag + /// + public global::System.String? Tag { get; } + + /// + /// Clan info updated at + /// + public global::System.DateTimeOffset? UpdatedAt { get; } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo_ClanInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo_ClanInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..4cbebfb --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo_ClanInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,13 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Clan information + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public interface IPlayer_AccountInfo_ClanInfo_ClanInfoResponse : IPlayer_AccountInfo_ClanInfo + { + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_Tanks.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_Tanks.WotBlitzStatisticsProClient.StrawberryShake.cs index ac1f9d9..9903550 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_Tanks.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_Tanks.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -15,40 +15,110 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl public global::System.Int64 TankId { get; } /// - /// Tank name + /// Total time in battle until tank killed /// - public global::System.String? Name { get; } - - /// - /// Localized tank nation name - /// - public global::System.String? TankNation { get; } - - /// - /// Localized tank type name - /// - public global::System.String? TankType { get; } - - /// - /// Tank tier - /// - public global::System.Int32 Tier { get; } - - /// - /// Is it premium tank or not - /// - public global::System.Boolean IsPremium { get; } + public global::System.Int32 BattleLifeTimeInSeconds { get; } /// /// Last battle /// public global::System.DateTimeOffset LastBattleTime { get; } + /// + /// Mark of Mastery + /// + public global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery MarkOfMastery { get; } + /// /// Battles count /// public global::System.Int64 Battles { get; } + /// + /// Base capture points + /// + public global::System.Int64 CapturePoints { get; } + + /// + /// Damage dealt + /// + public global::System.Int64 DamageDealt { get; } + + /// + /// Damage received + /// + public global::System.Int64 DamageReceived { get; } + + /// + /// Base dropped capture points + /// + public global::System.Int64 DroppedCapturePoints { get; } + + /// + /// Frags count + /// + public global::System.Int64 Frags { get; } + + /// + /// Frags count after 8 tier + /// + public global::System.Int64 Frags8P { get; } + + /// + /// Hits count + /// + public global::System.Int64 Hits { get; } + + /// + /// Losses count + /// + public global::System.Int64 Losses { get; } + + /// + /// Max frags per battle + /// + public global::System.Int64 MaxFrags { get; } + + /// + /// Max XP per battle + /// + public global::System.Int64 MaxXp { get; } + + /// + /// Shots count + /// + public global::System.Int64 Shots { get; } + + /// + /// Spotted vehicles count + /// + public global::System.Int64 Spotted { get; } + + /// + /// Amount of survived battles + /// + public global::System.Int64 SurvivedBattles { get; } + + /// + /// Amount of survived and wined battles + /// + public global::System.Int64 WinAndSurvived { get; } + + /// + /// Wins count + /// + public global::System.Int64 Wins { get; } + + /// + /// Total experience + /// + public global::System.Int64 Xp { get; } + + /// + /// Wn7 coefficient + /// + public global::System.Double Wn7 { get; } + /// /// Tank's win rate /// @@ -64,11 +134,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Decimal AvgXp { get; } - /// - /// Average life time in battle until tank is killed. - /// - public global::System.Decimal AvgBattleLifeTimeInMinutes { get; } - /// /// Damage coefficient /// @@ -78,5 +143,55 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// Rate of survival /// public global::System.Decimal SurvivalRate { get; } + + /// + /// Average life time in battle until tank is killed. + /// + public global::System.Decimal AvgBattleLifeTimeInMinutes { get; } + + /// + /// Tank name + /// + public global::System.String? Name { get; } + + /// + /// Tank nation dictionary identifier + /// + public global::System.String? TankNationId { get; } + + /// + /// Localized tank nation name + /// + public global::System.String? TankNation { get; } + + /// + /// Tank tier + /// + public global::System.Int32 Tier { get; } + + /// + /// Tank type dictionary identifier + /// + public global::System.String? TankTypeId { get; } + + /// + /// Localized tank type name + /// + public global::System.String? TankType { get; } + + /// + /// Is it premium tank or not + /// + public global::System.Boolean IsPremium { get; } + + /// + /// Vehicle preview image + /// + public global::System.String? PreviewImage { get; } + + /// + /// Vehicle normal image + /// + public global::System.String? NormalImage { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/MarkOfMastery.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/MarkOfMastery.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..dcd5e2b --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/MarkOfMastery.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,30 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public enum MarkOfMastery + { + /// + /// No mastery + /// + None, + /// + /// Third mark of mastery + /// + Rank3, + /// + /// Second mark of mastery + /// + Rank2, + /// + /// First mark of mastery + /// + Rank1, + /// + /// Master mark + /// + Master + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/PlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/PlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs index afa23f3..d4825a7 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/PlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/PlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -10,32 +10,93 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// accountInfo(accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { /// __typename /// accountId - /// nickname /// createdAt /// lastBattleTime + /// nickname + /// maxFragsTankId + /// maxXpTankId /// battles + /// capturePoints + /// damageDealt + /// damageReceived + /// droppedCapturePoints + /// frags + /// frags8P + /// hits + /// losses + /// maxFrags + /// maxXp + /// shots + /// spotted + /// survivedBattles + /// winAndSurvived + /// wins + /// xp + /// wn7 /// winRate /// avgDamage /// avgXp - /// avgTier /// damageCoefficient /// survivalRate + /// avgTier + /// clanInfo { + /// __typename + /// clanId + /// joinedAt + /// role + /// roleLocalized + /// name + /// createdAt + /// creatorId + /// creatorName + /// description + /// descriptionHtml + /// leaderId + /// leaderName + /// membersCount + /// motto + /// tag + /// updatedAt + /// } /// tanks { /// __typename /// tankId - /// name - /// tankNation - /// tankType - /// tier - /// isPremium + /// battleLifeTimeInSeconds /// lastBattleTime + /// markOfMastery /// battles + /// capturePoints + /// damageDealt + /// damageReceived + /// droppedCapturePoints + /// frags + /// frags8P + /// hits + /// losses + /// maxFrags + /// maxXp + /// shots + /// spotted + /// survivedBattles + /// winAndSurvived + /// wins + /// xp + /// wn7 /// winRate /// avgDamage /// avgXp - /// avgBattleLifeTimeInMinutes /// damageCoefficient /// survivalRate + /// avgBattleLifeTimeInMinutes + /// name + /// tankNationId + /// tankNation + /// tier + /// tankTypeId + /// tankType + /// isPremium + /// previewImage + /// normalImage /// } /// } /// } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/PlayerQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/PlayerQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs index 2cb3fd0..a77924b 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/PlayerQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/PlayerQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -10,32 +10,93 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// accountInfo(accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { /// __typename /// accountId - /// nickname /// createdAt /// lastBattleTime + /// nickname + /// maxFragsTankId + /// maxXpTankId /// battles + /// capturePoints + /// damageDealt + /// damageReceived + /// droppedCapturePoints + /// frags + /// frags8P + /// hits + /// losses + /// maxFrags + /// maxXp + /// shots + /// spotted + /// survivedBattles + /// winAndSurvived + /// wins + /// xp + /// wn7 /// winRate /// avgDamage /// avgXp - /// avgTier /// damageCoefficient /// survivalRate + /// avgTier + /// clanInfo { + /// __typename + /// clanId + /// joinedAt + /// role + /// roleLocalized + /// name + /// createdAt + /// creatorId + /// creatorName + /// description + /// descriptionHtml + /// leaderId + /// leaderName + /// membersCount + /// motto + /// tag + /// updatedAt + /// } /// tanks { /// __typename /// tankId - /// name - /// tankNation - /// tankType - /// tier - /// isPremium + /// battleLifeTimeInSeconds /// lastBattleTime + /// markOfMastery /// battles + /// capturePoints + /// damageDealt + /// damageReceived + /// droppedCapturePoints + /// frags + /// frags8P + /// hits + /// losses + /// maxFrags + /// maxXp + /// shots + /// spotted + /// survivedBattles + /// winAndSurvived + /// wins + /// xp + /// wn7 /// winRate /// avgDamage /// avgXp - /// avgBattleLifeTimeInMinutes /// damageCoefficient /// survivalRate + /// avgBattleLifeTimeInMinutes + /// name + /// tankNationId + /// tankNation + /// tier + /// tankTypeId + /// tankType + /// isPremium + /// previewImage + /// normalImage /// } /// } /// } @@ -50,8 +111,8 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl public static PlayerQueryDocument Instance { get; } = new PlayerQueryDocument(); public global::StrawberryShake.OperationKind Kind => global::StrawberryShake.OperationKind.Query; - public global::System.ReadOnlySpan Body => new global::System.Byte[]{0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x28, 0x24, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x3a, 0x20, 0x4c, 0x6f, 0x6e, 0x67, 0x21, 0x2c, 0x20, 0x24, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x21, 0x2c, 0x20, 0x24, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x3a, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x21, 0x29, 0x20, 0x7b, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x28, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x3a, 0x20, 0x24, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x2c, 0x20, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x24, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x3a, 0x20, 0x24, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x29, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x20, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x20, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x73, 0x20, 0x77, 0x69, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x20, 0x61, 0x76, 0x67, 0x44, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x61, 0x76, 0x67, 0x58, 0x70, 0x20, 0x61, 0x76, 0x67, 0x54, 0x69, 0x65, 0x72, 0x20, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x75, 0x72, 0x76, 0x69, 0x76, 0x61, 0x6c, 0x52, 0x61, 0x74, 0x65, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x73, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x49, 0x64, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x4e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x20, 0x74, 0x69, 0x65, 0x72, 0x20, 0x69, 0x73, 0x50, 0x72, 0x65, 0x6d, 0x69, 0x75, 0x6d, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x20, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x73, 0x20, 0x77, 0x69, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x20, 0x61, 0x76, 0x67, 0x44, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x61, 0x76, 0x67, 0x58, 0x70, 0x20, 0x61, 0x76, 0x67, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x4c, 0x69, 0x66, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x20, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x75, 0x72, 0x76, 0x69, 0x76, 0x61, 0x6c, 0x52, 0x61, 0x74, 0x65, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x7d}; - public global::StrawberryShake.DocumentHash Hash { get; } = new global::StrawberryShake.DocumentHash("md5Hash", "d87965bc71ef355d4d296088704d4d40"); + public global::System.ReadOnlySpan Body => new global::System.Byte[]{0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x28, 0x24, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x3a, 0x20, 0x4c, 0x6f, 0x6e, 0x67, 0x21, 0x2c, 0x20, 0x24, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x21, 0x2c, 0x20, 0x24, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x3a, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x21, 0x29, 0x20, 0x7b, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x28, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x3a, 0x20, 0x24, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x2c, 0x20, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x24, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x3a, 0x20, 0x24, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x29, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x20, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6d, 0x61, 0x78, 0x46, 0x72, 0x61, 0x67, 0x73, 0x54, 0x61, 0x6e, 0x6b, 0x49, 0x64, 0x20, 0x6d, 0x61, 0x78, 0x58, 0x70, 0x54, 0x61, 0x6e, 0x6b, 0x49, 0x64, 0x20, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x73, 0x20, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x20, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x74, 0x20, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x20, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x20, 0x66, 0x72, 0x61, 0x67, 0x73, 0x20, 0x66, 0x72, 0x61, 0x67, 0x73, 0x38, 0x50, 0x20, 0x68, 0x69, 0x74, 0x73, 0x20, 0x6c, 0x6f, 0x73, 0x73, 0x65, 0x73, 0x20, 0x6d, 0x61, 0x78, 0x46, 0x72, 0x61, 0x67, 0x73, 0x20, 0x6d, 0x61, 0x78, 0x58, 0x70, 0x20, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x20, 0x73, 0x70, 0x6f, 0x74, 0x74, 0x65, 0x64, 0x20, 0x73, 0x75, 0x72, 0x76, 0x69, 0x76, 0x65, 0x64, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x73, 0x20, 0x77, 0x69, 0x6e, 0x41, 0x6e, 0x64, 0x53, 0x75, 0x72, 0x76, 0x69, 0x76, 0x65, 0x64, 0x20, 0x77, 0x69, 0x6e, 0x73, 0x20, 0x78, 0x70, 0x20, 0x77, 0x6e, 0x37, 0x20, 0x77, 0x69, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x20, 0x61, 0x76, 0x67, 0x44, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x61, 0x76, 0x67, 0x58, 0x70, 0x20, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x75, 0x72, 0x76, 0x69, 0x76, 0x61, 0x6c, 0x52, 0x61, 0x74, 0x65, 0x20, 0x61, 0x76, 0x67, 0x54, 0x69, 0x65, 0x72, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x20, 0x6a, 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x41, 0x74, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x74, 0x6d, 0x6c, 0x20, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x49, 0x64, 0x20, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x6d, 0x6f, 0x74, 0x74, 0x6f, 0x20, 0x74, 0x61, 0x67, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x20, 0x7d, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x73, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x49, 0x64, 0x20, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x4c, 0x69, 0x66, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x20, 0x6d, 0x61, 0x72, 0x6b, 0x4f, 0x66, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x79, 0x20, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x73, 0x20, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x20, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x44, 0x65, 0x61, 0x6c, 0x74, 0x20, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x20, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x20, 0x66, 0x72, 0x61, 0x67, 0x73, 0x20, 0x66, 0x72, 0x61, 0x67, 0x73, 0x38, 0x50, 0x20, 0x68, 0x69, 0x74, 0x73, 0x20, 0x6c, 0x6f, 0x73, 0x73, 0x65, 0x73, 0x20, 0x6d, 0x61, 0x78, 0x46, 0x72, 0x61, 0x67, 0x73, 0x20, 0x6d, 0x61, 0x78, 0x58, 0x70, 0x20, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x20, 0x73, 0x70, 0x6f, 0x74, 0x74, 0x65, 0x64, 0x20, 0x73, 0x75, 0x72, 0x76, 0x69, 0x76, 0x65, 0x64, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x73, 0x20, 0x77, 0x69, 0x6e, 0x41, 0x6e, 0x64, 0x53, 0x75, 0x72, 0x76, 0x69, 0x76, 0x65, 0x64, 0x20, 0x77, 0x69, 0x6e, 0x73, 0x20, 0x78, 0x70, 0x20, 0x77, 0x6e, 0x37, 0x20, 0x77, 0x69, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x20, 0x61, 0x76, 0x67, 0x44, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x61, 0x76, 0x67, 0x58, 0x70, 0x20, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x75, 0x72, 0x76, 0x69, 0x76, 0x61, 0x6c, 0x52, 0x61, 0x74, 0x65, 0x20, 0x61, 0x76, 0x67, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x4c, 0x69, 0x66, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x4e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x4e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x69, 0x65, 0x72, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x20, 0x69, 0x73, 0x50, 0x72, 0x65, 0x6d, 0x69, 0x75, 0x6d, 0x20, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x7d}; + public global::StrawberryShake.DocumentHash Hash { get; } = new global::StrawberryShake.DocumentHash("md5Hash", "15d5e03ef055dc951c047827ff49084b"); public override global::System.String ToString() { #if NETSTANDARD2_0 diff --git a/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_AccountInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_AccountInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs index 5ba12a6..9ad0a0f 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_AccountInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_AccountInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,19 +9,39 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] public partial class Player_AccountInfo_AccountInfoResponse : global::System.IEquatable, IPlayer_AccountInfo_AccountInfoResponse { - public Player_AccountInfo_AccountInfoResponse(global::System.Int64 accountId, global::System.String? nickname, global::System.DateTimeOffset createdAt, global::System.DateTimeOffset lastBattleTime, global::System.Int64 battles, global::System.Decimal winRate, global::System.Decimal avgDamage, global::System.Decimal avgXp, global::System.Double avgTier, global::System.Decimal damageCoefficient, global::System.Decimal survivalRate, global::System.Collections.Generic.IReadOnlyList? tanks) + public Player_AccountInfo_AccountInfoResponse(global::System.Int64 accountId, global::System.DateTimeOffset createdAt, global::System.DateTimeOffset lastBattleTime, global::System.String? nickname, global::System.Int64 maxFragsTankId, global::System.Int64 maxXpTankId, global::System.Int64 battles, global::System.Int64 capturePoints, global::System.Int64 damageDealt, global::System.Int64 damageReceived, global::System.Int64 droppedCapturePoints, global::System.Int64 frags, global::System.Int64 frags8P, global::System.Int64 hits, global::System.Int64 losses, global::System.Int64 maxFrags, global::System.Int64 maxXp, global::System.Int64 shots, global::System.Int64 spotted, global::System.Int64 survivedBattles, global::System.Int64 winAndSurvived, global::System.Int64 wins, global::System.Int64 xp, global::System.Double wn7, global::System.Decimal winRate, global::System.Decimal avgDamage, global::System.Decimal avgXp, global::System.Decimal damageCoefficient, global::System.Decimal survivalRate, global::System.Double avgTier, global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo_ClanInfo? clanInfo, global::System.Collections.Generic.IReadOnlyList? tanks) { AccountId = accountId; - Nickname = nickname; CreatedAt = createdAt; LastBattleTime = lastBattleTime; + Nickname = nickname; + MaxFragsTankId = maxFragsTankId; + MaxXpTankId = maxXpTankId; Battles = battles; + CapturePoints = capturePoints; + DamageDealt = damageDealt; + DamageReceived = damageReceived; + DroppedCapturePoints = droppedCapturePoints; + Frags = frags; + Frags8P = frags8P; + Hits = hits; + Losses = losses; + MaxFrags = maxFrags; + MaxXp = maxXp; + Shots = shots; + Spotted = spotted; + SurvivedBattles = survivedBattles; + WinAndSurvived = winAndSurvived; + Wins = wins; + Xp = xp; + Wn7 = wn7; WinRate = winRate; AvgDamage = avgDamage; AvgXp = avgXp; - AvgTier = avgTier; DamageCoefficient = damageCoefficient; SurvivalRate = survivalRate; + AvgTier = avgTier; + ClanInfo = clanInfo; Tanks = tanks; } @@ -30,11 +50,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Int64 AccountId { get; } - /// - /// Player's nick - /// - public global::System.String? Nickname { get; } - /// /// Account creation date /// @@ -45,11 +60,111 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.DateTimeOffset LastBattleTime { get; } + /// + /// Player's nick + /// + public global::System.String? Nickname { get; } + + /// + /// Tank id, which kills max frags per battle + /// + public global::System.Int64 MaxFragsTankId { get; } + + /// + /// Tank Id which created max experience per battle + /// + public global::System.Int64 MaxXpTankId { get; } + /// /// Battles count /// public global::System.Int64 Battles { get; } + /// + /// Capture points + /// + public global::System.Int64 CapturePoints { get; } + + /// + /// Total damage amount + /// + public global::System.Int64 DamageDealt { get; } + + /// + /// Total amount of received damage + /// + public global::System.Int64 DamageReceived { get; } + + /// + /// Dropped capture points + /// + public global::System.Int64 DroppedCapturePoints { get; } + + /// + /// Total amount of frags + /// + public global::System.Int64 Frags { get; } + + /// + /// Total amount of fras grater ten 8 lvl + /// + public global::System.Int64 Frags8P { get; } + + /// + /// Total amount of hits + /// + public global::System.Int64 Hits { get; } + + /// + /// Total amount of losses + /// + public global::System.Int64 Losses { get; } + + /// + /// Max frags per battle + /// + public global::System.Int64 MaxFrags { get; } + + /// + /// Max experience per battle + /// + public global::System.Int64 MaxXp { get; } + + /// + /// Total shots count + /// + public global::System.Int64 Shots { get; } + + /// + /// Total count of spotted vehicles + /// + public global::System.Int64 Spotted { get; } + + /// + /// Total count of survived battles + /// + public global::System.Int64 SurvivedBattles { get; } + + /// + /// Total count of survived and winned battles + /// + public global::System.Int64 WinAndSurvived { get; } + + /// + /// Total wins count + /// + public global::System.Int64 Wins { get; } + + /// + /// Total amount of experience + /// + public global::System.Int64 Xp { get; } + + /// + /// Wn7 coefficient + /// + public global::System.Double Wn7 { get; } + /// /// Player's win rate /// @@ -65,11 +180,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Decimal AvgXp { get; } - /// - /// Average tier - /// - public global::System.Double AvgTier { get; } - /// /// Damage coefficient /// @@ -80,6 +190,16 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Decimal SurvivalRate { get; } + /// + /// Average tier + /// + public global::System.Double AvgTier { get; } + + /// + /// Clan info + /// + public global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo_ClanInfo? ClanInfo { get; } + /// /// All player's tanks /// @@ -102,7 +222,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl return false; } - return (AccountId == other.AccountId) && ((Nickname is null && other.Nickname is null) || Nickname != null && Nickname.Equals(other.Nickname)) && CreatedAt.Equals(other.CreatedAt) && LastBattleTime.Equals(other.LastBattleTime) && Battles == other.Battles && WinRate == other.WinRate && AvgDamage == other.AvgDamage && AvgXp == other.AvgXp && AvgTier == other.AvgTier && DamageCoefficient == other.DamageCoefficient && SurvivalRate == other.SurvivalRate && global::StrawberryShake.Helper.ComparisonHelper.SequenceEqual(Tanks, other.Tanks); + return (AccountId == other.AccountId) && CreatedAt.Equals(other.CreatedAt) && LastBattleTime.Equals(other.LastBattleTime) && ((Nickname is null && other.Nickname is null) || Nickname != null && Nickname.Equals(other.Nickname)) && MaxFragsTankId == other.MaxFragsTankId && MaxXpTankId == other.MaxXpTankId && Battles == other.Battles && CapturePoints == other.CapturePoints && DamageDealt == other.DamageDealt && DamageReceived == other.DamageReceived && DroppedCapturePoints == other.DroppedCapturePoints && Frags == other.Frags && Frags8P == other.Frags8P && Hits == other.Hits && Losses == other.Losses && MaxFrags == other.MaxFrags && MaxXp == other.MaxXp && Shots == other.Shots && Spotted == other.Spotted && SurvivedBattles == other.SurvivedBattles && WinAndSurvived == other.WinAndSurvived && Wins == other.Wins && Xp == other.Xp && Wn7 == other.Wn7 && WinRate == other.WinRate && AvgDamage == other.AvgDamage && AvgXp == other.AvgXp && DamageCoefficient == other.DamageCoefficient && SurvivalRate == other.SurvivalRate && AvgTier == other.AvgTier && ((ClanInfo is null && other.ClanInfo is null) || ClanInfo != null && ClanInfo.Equals(other.ClanInfo)) && global::StrawberryShake.Helper.ComparisonHelper.SequenceEqual(Tanks, other.Tanks); } public override global::System.Boolean Equals(global::System.Object? obj) @@ -131,20 +251,44 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl { int hash = 5; hash ^= 397 * AccountId.GetHashCode(); + hash ^= 397 * CreatedAt.GetHashCode(); + hash ^= 397 * LastBattleTime.GetHashCode(); if (Nickname != null) { hash ^= 397 * Nickname.GetHashCode(); } - hash ^= 397 * CreatedAt.GetHashCode(); - hash ^= 397 * LastBattleTime.GetHashCode(); + hash ^= 397 * MaxFragsTankId.GetHashCode(); + hash ^= 397 * MaxXpTankId.GetHashCode(); hash ^= 397 * Battles.GetHashCode(); + hash ^= 397 * CapturePoints.GetHashCode(); + hash ^= 397 * DamageDealt.GetHashCode(); + hash ^= 397 * DamageReceived.GetHashCode(); + hash ^= 397 * DroppedCapturePoints.GetHashCode(); + hash ^= 397 * Frags.GetHashCode(); + hash ^= 397 * Frags8P.GetHashCode(); + hash ^= 397 * Hits.GetHashCode(); + hash ^= 397 * Losses.GetHashCode(); + hash ^= 397 * MaxFrags.GetHashCode(); + hash ^= 397 * MaxXp.GetHashCode(); + hash ^= 397 * Shots.GetHashCode(); + hash ^= 397 * Spotted.GetHashCode(); + hash ^= 397 * SurvivedBattles.GetHashCode(); + hash ^= 397 * WinAndSurvived.GetHashCode(); + hash ^= 397 * Wins.GetHashCode(); + hash ^= 397 * Xp.GetHashCode(); + hash ^= 397 * Wn7.GetHashCode(); hash ^= 397 * WinRate.GetHashCode(); hash ^= 397 * AvgDamage.GetHashCode(); hash ^= 397 * AvgXp.GetHashCode(); - hash ^= 397 * AvgTier.GetHashCode(); hash ^= 397 * DamageCoefficient.GetHashCode(); hash ^= 397 * SurvivalRate.GetHashCode(); + hash ^= 397 * AvgTier.GetHashCode(); + if (ClanInfo != null) + { + hash ^= 397 * ClanInfo.GetHashCode(); + } + if (Tanks != null) { foreach (var Tanks_elm in Tanks) diff --git a/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_ClanInfo_ClanInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_ClanInfo_ClanInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..f0057da --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_ClanInfo_ClanInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,225 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Clan information + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public partial class Player_AccountInfo_ClanInfo_ClanInfoResponse : global::System.IEquatable, IPlayer_AccountInfo_ClanInfo_ClanInfoResponse + { + public Player_AccountInfo_ClanInfo_ClanInfoResponse(global::System.Int64 clanId, global::System.DateTimeOffset joinedAt, global::System.String? role, global::System.String roleLocalized, global::System.String? name, global::System.DateTimeOffset createdAt, global::System.Int64? creatorId, global::System.String? creatorName, global::System.String? description, global::System.String? descriptionHtml, global::System.Int64? leaderId, global::System.String? leaderName, global::System.Int64? membersCount, global::System.String? motto, global::System.String? tag, global::System.DateTimeOffset? updatedAt) + { + ClanId = clanId; + JoinedAt = joinedAt; + Role = role; + RoleLocalized = roleLocalized; + Name = name; + CreatedAt = createdAt; + CreatorId = creatorId; + CreatorName = creatorName; + Description = description; + DescriptionHtml = descriptionHtml; + LeaderId = leaderId; + LeaderName = leaderName; + MembersCount = membersCount; + Motto = motto; + Tag = tag; + UpdatedAt = updatedAt; + } + + /// + /// Clan ID + /// + public global::System.Int64 ClanId { get; } + + /// + /// Date of joining clan + /// + public global::System.DateTimeOffset JoinedAt { get; } + + /// + /// Player clan role ID + /// + public global::System.String? Role { get; } + + /// + /// Player clan role + /// + public global::System.String RoleLocalized { get; } + + /// + /// Clan name + /// + public global::System.String? Name { get; } + + /// + /// Date of clan creation + /// + public global::System.DateTimeOffset CreatedAt { get; } + + /// + /// Clan creator account id + /// + public global::System.Int64? CreatorId { get; } + + /// + /// Clan creator nick + /// + public global::System.String? CreatorName { get; } + + /// + /// Clan description + /// + public global::System.String? Description { get; } + + /// + /// Html Clan description + /// + public global::System.String? DescriptionHtml { get; } + + /// + /// Clan commander accountId + /// + public global::System.Int64? LeaderId { get; } + + /// + /// Clan commander nick + /// + public global::System.String? LeaderName { get; } + + /// + /// Clan members count + /// + public global::System.Int64? MembersCount { get; } + + /// + /// Clan motto + /// + public global::System.String? Motto { get; } + + /// + /// Clan tag + /// + public global::System.String? Tag { get; } + + /// + /// Clan info updated at + /// + public global::System.DateTimeOffset? UpdatedAt { get; } + + public virtual global::System.Boolean Equals(Player_AccountInfo_ClanInfo_ClanInfoResponse? other) + { + if (ReferenceEquals(null, other)) + { + return false; + } + + if (ReferenceEquals(this, other)) + { + return true; + } + + if (other.GetType() != GetType()) + { + return false; + } + + return (ClanId == other.ClanId) && JoinedAt.Equals(other.JoinedAt) && ((Role is null && other.Role is null) || Role != null && Role.Equals(other.Role)) && RoleLocalized.Equals(other.RoleLocalized) && ((Name is null && other.Name is null) || Name != null && Name.Equals(other.Name)) && CreatedAt.Equals(other.CreatedAt) && CreatorId == other.CreatorId && ((CreatorName is null && other.CreatorName is null) || CreatorName != null && CreatorName.Equals(other.CreatorName)) && ((Description is null && other.Description is null) || Description != null && Description.Equals(other.Description)) && ((DescriptionHtml is null && other.DescriptionHtml is null) || DescriptionHtml != null && DescriptionHtml.Equals(other.DescriptionHtml)) && LeaderId == other.LeaderId && ((LeaderName is null && other.LeaderName is null) || LeaderName != null && LeaderName.Equals(other.LeaderName)) && MembersCount == other.MembersCount && ((Motto is null && other.Motto is null) || Motto != null && Motto.Equals(other.Motto)) && ((Tag is null && other.Tag is null) || Tag != null && Tag.Equals(other.Tag)) && ((UpdatedAt is null && other.UpdatedAt is null) || UpdatedAt != null && UpdatedAt.Equals(other.UpdatedAt)); + } + + public override global::System.Boolean Equals(global::System.Object? obj) + { + if (ReferenceEquals(null, obj)) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (obj.GetType() != GetType()) + { + return false; + } + + return Equals((Player_AccountInfo_ClanInfo_ClanInfoResponse)obj); + } + + public override global::System.Int32 GetHashCode() + { + unchecked + { + int hash = 5; + hash ^= 397 * ClanId.GetHashCode(); + hash ^= 397 * JoinedAt.GetHashCode(); + if (Role != null) + { + hash ^= 397 * Role.GetHashCode(); + } + + hash ^= 397 * RoleLocalized.GetHashCode(); + if (Name != null) + { + hash ^= 397 * Name.GetHashCode(); + } + + hash ^= 397 * CreatedAt.GetHashCode(); + if (CreatorId != null) + { + hash ^= 397 * CreatorId.GetHashCode(); + } + + if (CreatorName != null) + { + hash ^= 397 * CreatorName.GetHashCode(); + } + + if (Description != null) + { + hash ^= 397 * Description.GetHashCode(); + } + + if (DescriptionHtml != null) + { + hash ^= 397 * DescriptionHtml.GetHashCode(); + } + + if (LeaderId != null) + { + hash ^= 397 * LeaderId.GetHashCode(); + } + + if (LeaderName != null) + { + hash ^= 397 * LeaderName.GetHashCode(); + } + + if (MembersCount != null) + { + hash ^= 397 * MembersCount.GetHashCode(); + } + + if (Motto != null) + { + hash ^= 397 * Motto.GetHashCode(); + } + + if (Tag != null) + { + hash ^= 397 * Tag.GetHashCode(); + } + + if (UpdatedAt != null) + { + hash ^= 397 * UpdatedAt.GetHashCode(); + } + + return hash; + } + } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_Tanks_TankInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_Tanks_TankInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs index f1e59fb..dbee63f 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_Tanks_TankInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_Tanks_TankInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,22 +9,45 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] public partial class Player_AccountInfo_Tanks_TankInfoResponse : global::System.IEquatable, IPlayer_AccountInfo_Tanks_TankInfoResponse { - public Player_AccountInfo_Tanks_TankInfoResponse(global::System.Int64 tankId, global::System.String? name, global::System.String? tankNation, global::System.String? tankType, global::System.Int32 tier, global::System.Boolean isPremium, global::System.DateTimeOffset lastBattleTime, global::System.Int64 battles, global::System.Decimal winRate, global::System.Decimal avgDamage, global::System.Decimal avgXp, global::System.Decimal avgBattleLifeTimeInMinutes, global::System.Decimal damageCoefficient, global::System.Decimal survivalRate) + public Player_AccountInfo_Tanks_TankInfoResponse(global::System.Int64 tankId, global::System.Int32 battleLifeTimeInSeconds, global::System.DateTimeOffset lastBattleTime, global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery markOfMastery, global::System.Int64 battles, global::System.Int64 capturePoints, global::System.Int64 damageDealt, global::System.Int64 damageReceived, global::System.Int64 droppedCapturePoints, global::System.Int64 frags, global::System.Int64 frags8P, global::System.Int64 hits, global::System.Int64 losses, global::System.Int64 maxFrags, global::System.Int64 maxXp, global::System.Int64 shots, global::System.Int64 spotted, global::System.Int64 survivedBattles, global::System.Int64 winAndSurvived, global::System.Int64 wins, global::System.Int64 xp, global::System.Double wn7, global::System.Decimal winRate, global::System.Decimal avgDamage, global::System.Decimal avgXp, global::System.Decimal damageCoefficient, global::System.Decimal survivalRate, global::System.Decimal avgBattleLifeTimeInMinutes, global::System.String? name, global::System.String? tankNationId, global::System.String? tankNation, global::System.Int32 tier, global::System.String? tankTypeId, global::System.String? tankType, global::System.Boolean isPremium, global::System.String? previewImage, global::System.String? normalImage) { TankId = tankId; - Name = name; - TankNation = tankNation; - TankType = tankType; - Tier = tier; - IsPremium = isPremium; + BattleLifeTimeInSeconds = battleLifeTimeInSeconds; LastBattleTime = lastBattleTime; + MarkOfMastery = markOfMastery; Battles = battles; + CapturePoints = capturePoints; + DamageDealt = damageDealt; + DamageReceived = damageReceived; + DroppedCapturePoints = droppedCapturePoints; + Frags = frags; + Frags8P = frags8P; + Hits = hits; + Losses = losses; + MaxFrags = maxFrags; + MaxXp = maxXp; + Shots = shots; + Spotted = spotted; + SurvivedBattles = survivedBattles; + WinAndSurvived = winAndSurvived; + Wins = wins; + Xp = xp; + Wn7 = wn7; WinRate = winRate; AvgDamage = avgDamage; AvgXp = avgXp; - AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes; DamageCoefficient = damageCoefficient; SurvivalRate = survivalRate; + AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes; + Name = name; + TankNationId = tankNationId; + TankNation = tankNation; + Tier = tier; + TankTypeId = tankTypeId; + TankType = tankType; + IsPremium = isPremium; + PreviewImage = previewImage; + NormalImage = normalImage; } /// @@ -33,40 +56,110 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl public global::System.Int64 TankId { get; } /// - /// Tank name + /// Total time in battle until tank killed /// - public global::System.String? Name { get; } - - /// - /// Localized tank nation name - /// - public global::System.String? TankNation { get; } - - /// - /// Localized tank type name - /// - public global::System.String? TankType { get; } - - /// - /// Tank tier - /// - public global::System.Int32 Tier { get; } - - /// - /// Is it premium tank or not - /// - public global::System.Boolean IsPremium { get; } + public global::System.Int32 BattleLifeTimeInSeconds { get; } /// /// Last battle /// public global::System.DateTimeOffset LastBattleTime { get; } + /// + /// Mark of Mastery + /// + public global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery MarkOfMastery { get; } + /// /// Battles count /// public global::System.Int64 Battles { get; } + /// + /// Base capture points + /// + public global::System.Int64 CapturePoints { get; } + + /// + /// Damage dealt + /// + public global::System.Int64 DamageDealt { get; } + + /// + /// Damage received + /// + public global::System.Int64 DamageReceived { get; } + + /// + /// Base dropped capture points + /// + public global::System.Int64 DroppedCapturePoints { get; } + + /// + /// Frags count + /// + public global::System.Int64 Frags { get; } + + /// + /// Frags count after 8 tier + /// + public global::System.Int64 Frags8P { get; } + + /// + /// Hits count + /// + public global::System.Int64 Hits { get; } + + /// + /// Losses count + /// + public global::System.Int64 Losses { get; } + + /// + /// Max frags per battle + /// + public global::System.Int64 MaxFrags { get; } + + /// + /// Max XP per battle + /// + public global::System.Int64 MaxXp { get; } + + /// + /// Shots count + /// + public global::System.Int64 Shots { get; } + + /// + /// Spotted vehicles count + /// + public global::System.Int64 Spotted { get; } + + /// + /// Amount of survived battles + /// + public global::System.Int64 SurvivedBattles { get; } + + /// + /// Amount of survived and wined battles + /// + public global::System.Int64 WinAndSurvived { get; } + + /// + /// Wins count + /// + public global::System.Int64 Wins { get; } + + /// + /// Total experience + /// + public global::System.Int64 Xp { get; } + + /// + /// Wn7 coefficient + /// + public global::System.Double Wn7 { get; } + /// /// Tank's win rate /// @@ -82,11 +175,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Decimal AvgXp { get; } - /// - /// Average life time in battle until tank is killed. - /// - public global::System.Decimal AvgBattleLifeTimeInMinutes { get; } - /// /// Damage coefficient /// @@ -97,6 +185,56 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Decimal SurvivalRate { get; } + /// + /// Average life time in battle until tank is killed. + /// + public global::System.Decimal AvgBattleLifeTimeInMinutes { get; } + + /// + /// Tank name + /// + public global::System.String? Name { get; } + + /// + /// Tank nation dictionary identifier + /// + public global::System.String? TankNationId { get; } + + /// + /// Localized tank nation name + /// + public global::System.String? TankNation { get; } + + /// + /// Tank tier + /// + public global::System.Int32 Tier { get; } + + /// + /// Tank type dictionary identifier + /// + public global::System.String? TankTypeId { get; } + + /// + /// Localized tank type name + /// + public global::System.String? TankType { get; } + + /// + /// Is it premium tank or not + /// + public global::System.Boolean IsPremium { get; } + + /// + /// Vehicle preview image + /// + public global::System.String? PreviewImage { get; } + + /// + /// Vehicle normal image + /// + public global::System.String? NormalImage { get; } + public virtual global::System.Boolean Equals(Player_AccountInfo_Tanks_TankInfoResponse? other) { if (ReferenceEquals(null, other)) @@ -114,7 +252,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl return false; } - return (TankId == other.TankId) && ((Name is null && other.Name is null) || Name != null && Name.Equals(other.Name)) && ((TankNation is null && other.TankNation is null) || TankNation != null && TankNation.Equals(other.TankNation)) && ((TankType is null && other.TankType is null) || TankType != null && TankType.Equals(other.TankType)) && Tier == other.Tier && IsPremium == other.IsPremium && LastBattleTime.Equals(other.LastBattleTime) && Battles == other.Battles && WinRate == other.WinRate && AvgDamage == other.AvgDamage && AvgXp == other.AvgXp && AvgBattleLifeTimeInMinutes == other.AvgBattleLifeTimeInMinutes && DamageCoefficient == other.DamageCoefficient && SurvivalRate == other.SurvivalRate; + return (TankId == other.TankId) && BattleLifeTimeInSeconds == other.BattleLifeTimeInSeconds && LastBattleTime.Equals(other.LastBattleTime) && MarkOfMastery.Equals(other.MarkOfMastery) && Battles == other.Battles && CapturePoints == other.CapturePoints && DamageDealt == other.DamageDealt && DamageReceived == other.DamageReceived && DroppedCapturePoints == other.DroppedCapturePoints && Frags == other.Frags && Frags8P == other.Frags8P && Hits == other.Hits && Losses == other.Losses && MaxFrags == other.MaxFrags && MaxXp == other.MaxXp && Shots == other.Shots && Spotted == other.Spotted && SurvivedBattles == other.SurvivedBattles && WinAndSurvived == other.WinAndSurvived && Wins == other.Wins && Xp == other.Xp && Wn7 == other.Wn7 && WinRate == other.WinRate && AvgDamage == other.AvgDamage && AvgXp == other.AvgXp && DamageCoefficient == other.DamageCoefficient && SurvivalRate == other.SurvivalRate && AvgBattleLifeTimeInMinutes == other.AvgBattleLifeTimeInMinutes && ((Name is null && other.Name is null) || Name != null && Name.Equals(other.Name)) && ((TankNationId is null && other.TankNationId is null) || TankNationId != null && TankNationId.Equals(other.TankNationId)) && ((TankNation is null && other.TankNation is null) || TankNation != null && TankNation.Equals(other.TankNation)) && Tier == other.Tier && ((TankTypeId is null && other.TankTypeId is null) || TankTypeId != null && TankTypeId.Equals(other.TankTypeId)) && ((TankType is null && other.TankType is null) || TankType != null && TankType.Equals(other.TankType)) && IsPremium == other.IsPremium && ((PreviewImage is null && other.PreviewImage is null) || PreviewImage != null && PreviewImage.Equals(other.PreviewImage)) && ((NormalImage is null && other.NormalImage is null) || NormalImage != null && NormalImage.Equals(other.NormalImage)); } public override global::System.Boolean Equals(global::System.Object? obj) @@ -143,31 +281,70 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl { int hash = 5; hash ^= 397 * TankId.GetHashCode(); + hash ^= 397 * BattleLifeTimeInSeconds.GetHashCode(); + hash ^= 397 * LastBattleTime.GetHashCode(); + hash ^= 397 * MarkOfMastery.GetHashCode(); + hash ^= 397 * Battles.GetHashCode(); + hash ^= 397 * CapturePoints.GetHashCode(); + hash ^= 397 * DamageDealt.GetHashCode(); + hash ^= 397 * DamageReceived.GetHashCode(); + hash ^= 397 * DroppedCapturePoints.GetHashCode(); + hash ^= 397 * Frags.GetHashCode(); + hash ^= 397 * Frags8P.GetHashCode(); + hash ^= 397 * Hits.GetHashCode(); + hash ^= 397 * Losses.GetHashCode(); + hash ^= 397 * MaxFrags.GetHashCode(); + hash ^= 397 * MaxXp.GetHashCode(); + hash ^= 397 * Shots.GetHashCode(); + hash ^= 397 * Spotted.GetHashCode(); + hash ^= 397 * SurvivedBattles.GetHashCode(); + hash ^= 397 * WinAndSurvived.GetHashCode(); + hash ^= 397 * Wins.GetHashCode(); + hash ^= 397 * Xp.GetHashCode(); + hash ^= 397 * Wn7.GetHashCode(); + hash ^= 397 * WinRate.GetHashCode(); + hash ^= 397 * AvgDamage.GetHashCode(); + hash ^= 397 * AvgXp.GetHashCode(); + hash ^= 397 * DamageCoefficient.GetHashCode(); + hash ^= 397 * SurvivalRate.GetHashCode(); + hash ^= 397 * AvgBattleLifeTimeInMinutes.GetHashCode(); if (Name != null) { hash ^= 397 * Name.GetHashCode(); } + if (TankNationId != null) + { + hash ^= 397 * TankNationId.GetHashCode(); + } + if (TankNation != null) { hash ^= 397 * TankNation.GetHashCode(); } + hash ^= 397 * Tier.GetHashCode(); + if (TankTypeId != null) + { + hash ^= 397 * TankTypeId.GetHashCode(); + } + if (TankType != null) { hash ^= 397 * TankType.GetHashCode(); } - hash ^= 397 * Tier.GetHashCode(); hash ^= 397 * IsPremium.GetHashCode(); - hash ^= 397 * LastBattleTime.GetHashCode(); - hash ^= 397 * Battles.GetHashCode(); - hash ^= 397 * WinRate.GetHashCode(); - hash ^= 397 * AvgDamage.GetHashCode(); - hash ^= 397 * AvgXp.GetHashCode(); - hash ^= 397 * AvgBattleLifeTimeInMinutes.GetHashCode(); - hash ^= 397 * DamageCoefficient.GetHashCode(); - hash ^= 397 * SurvivalRate.GetHashCode(); + if (PreviewImage != null) + { + hash ^= 397 * PreviewImage.GetHashCode(); + } + + if (NormalImage != null) + { + hash ^= 397 * NormalImage.GetHashCode(); + } + return hash; } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/Serialization/MarkOfMasterySerializer.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/Serialization/MarkOfMasterySerializer.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..dc1b833 --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/Serialization/MarkOfMasterySerializer.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,28 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public partial class MarkOfMasterySerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser + { + public global::System.String TypeName => "MarkOfMastery"; + public MarkOfMastery Parse(global::System.String serializedValue) + { + return serializedValue switch + { + "NONE" => MarkOfMastery.None, "RANK3" => MarkOfMastery.Rank3, "RANK2" => MarkOfMastery.Rank2, "RANK1" => MarkOfMastery.Rank1, "MASTER" => MarkOfMastery.Master, _ => throw new global::StrawberryShake.GraphQLClientException()} + + ; + } + + public global::System.Object Format(global::System.Object? runtimeValue) + { + return runtimeValue switch + { + MarkOfMastery.None => "NONE", MarkOfMastery.Rank3 => "RANK3", MarkOfMastery.Rank2 => "RANK2", MarkOfMastery.Rank1 => "RANK1", MarkOfMastery.Master => "MASTER", _ => throw new global::StrawberryShake.GraphQLClientException()} + + ; + } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/AccountInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/AccountInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs index aee87b7..1b19a92 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/AccountInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/AccountInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -7,20 +7,40 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] public partial class AccountInfoResponseData { - public AccountInfoResponseData(global::System.String __typename, global::System.Int64? accountId = default !, global::System.String? nickname = default !, global::System.DateTimeOffset? createdAt = default !, global::System.DateTimeOffset? lastBattleTime = default !, global::System.Int64? battles = default !, global::System.Decimal? winRate = default !, global::System.Decimal? avgDamage = default !, global::System.Decimal? avgXp = default !, global::System.Double? avgTier = default !, global::System.Decimal? damageCoefficient = default !, global::System.Decimal? survivalRate = default !, global::System.Collections.Generic.IReadOnlyList? tanks = default !) + public AccountInfoResponseData(global::System.String __typename, global::System.Int64? accountId = default !, global::System.DateTimeOffset? createdAt = default !, global::System.DateTimeOffset? lastBattleTime = default !, global::System.String? nickname = default !, global::System.Int64? maxFragsTankId = default !, global::System.Int64? maxXpTankId = default !, global::System.Int64? battles = default !, global::System.Int64? capturePoints = default !, global::System.Int64? damageDealt = default !, global::System.Int64? damageReceived = default !, global::System.Int64? droppedCapturePoints = default !, global::System.Int64? frags = default !, global::System.Int64? frags8P = default !, global::System.Int64? hits = default !, global::System.Int64? losses = default !, global::System.Int64? maxFrags = default !, global::System.Int64? maxXp = default !, global::System.Int64? shots = default !, global::System.Int64? spotted = default !, global::System.Int64? survivedBattles = default !, global::System.Int64? winAndSurvived = default !, global::System.Int64? wins = default !, global::System.Int64? xp = default !, global::System.Double? wn7 = default !, global::System.Decimal? winRate = default !, global::System.Decimal? avgDamage = default !, global::System.Decimal? avgXp = default !, global::System.Decimal? damageCoefficient = default !, global::System.Decimal? survivalRate = default !, global::System.Double? avgTier = default !, global::WotBlitzStatisticsPro.Blazor.GraphQl.State.ClanInfoResponseData? clanInfo = default !, global::System.Collections.Generic.IReadOnlyList? tanks = default !) { this.__typename = __typename ?? throw new global::System.ArgumentNullException(nameof(__typename)); AccountId = accountId; - Nickname = nickname; CreatedAt = createdAt; LastBattleTime = lastBattleTime; + Nickname = nickname; + MaxFragsTankId = maxFragsTankId; + MaxXpTankId = maxXpTankId; Battles = battles; + CapturePoints = capturePoints; + DamageDealt = damageDealt; + DamageReceived = damageReceived; + DroppedCapturePoints = droppedCapturePoints; + Frags = frags; + Frags8P = frags8P; + Hits = hits; + Losses = losses; + MaxFrags = maxFrags; + MaxXp = maxXp; + Shots = shots; + Spotted = spotted; + SurvivedBattles = survivedBattles; + WinAndSurvived = winAndSurvived; + Wins = wins; + Xp = xp; + Wn7 = wn7; WinRate = winRate; AvgDamage = avgDamage; AvgXp = avgXp; - AvgTier = avgTier; DamageCoefficient = damageCoefficient; SurvivalRate = survivalRate; + AvgTier = avgTier; + ClanInfo = clanInfo; Tanks = tanks; } @@ -29,18 +49,75 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///Player account identifier public global::System.Int64? AccountId { get; } - ///Player's nick - public global::System.String? Nickname { get; } - ///Account creation date public global::System.DateTimeOffset? CreatedAt { get; } ///Last battle time public global::System.DateTimeOffset? LastBattleTime { get; } + ///Player's nick + public global::System.String? Nickname { get; } + + ///Tank id, which kills max frags per battle + public global::System.Int64? MaxFragsTankId { get; } + + ///Tank Id which created max experience per battle + public global::System.Int64? MaxXpTankId { get; } + ///Battles count public global::System.Int64? Battles { get; } + ///Capture points + public global::System.Int64? CapturePoints { get; } + + ///Total damage amount + public global::System.Int64? DamageDealt { get; } + + ///Total amount of received damage + public global::System.Int64? DamageReceived { get; } + + ///Dropped capture points + public global::System.Int64? DroppedCapturePoints { get; } + + ///Total amount of frags + public global::System.Int64? Frags { get; } + + ///Total amount of fras grater ten 8 lvl + public global::System.Int64? Frags8P { get; } + + ///Total amount of hits + public global::System.Int64? Hits { get; } + + ///Total amount of losses + public global::System.Int64? Losses { get; } + + ///Max frags per battle + public global::System.Int64? MaxFrags { get; } + + ///Max experience per battle + public global::System.Int64? MaxXp { get; } + + ///Total shots count + public global::System.Int64? Shots { get; } + + ///Total count of spotted vehicles + public global::System.Int64? Spotted { get; } + + ///Total count of survived battles + public global::System.Int64? SurvivedBattles { get; } + + ///Total count of survived and winned battles + public global::System.Int64? WinAndSurvived { get; } + + ///Total wins count + public global::System.Int64? Wins { get; } + + ///Total amount of experience + public global::System.Int64? Xp { get; } + + ///Wn7 coefficient + public global::System.Double? Wn7 { get; } + ///Player's win rate public global::System.Decimal? WinRate { get; } @@ -50,15 +127,18 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///Player's average XP public global::System.Decimal? AvgXp { get; } - ///Average tier - public global::System.Double? AvgTier { get; } - ///Damage coefficient public global::System.Decimal? DamageCoefficient { get; } ///Rate of survival public global::System.Decimal? SurvivalRate { get; } + ///Average tier + public global::System.Double? AvgTier { get; } + + ///Clan info + public global::WotBlitzStatisticsPro.Blazor.GraphQl.State.ClanInfoResponseData? ClanInfo { get; } + ///All player's tanks public global::System.Collections.Generic.IReadOnlyList? Tanks { get; } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/ClanInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/ClanInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..7f84f79 --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/ClanInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,81 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl.State +{ + ///Clan information + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public partial class ClanInfoResponseData + { + public ClanInfoResponseData(global::System.String __typename, global::System.Int64? clanId = default !, global::System.DateTimeOffset? joinedAt = default !, global::System.String? role = default !, global::System.String? roleLocalized = default !, global::System.String? name = default !, global::System.DateTimeOffset? createdAt = default !, global::System.Int64? creatorId = default !, global::System.String? creatorName = default !, global::System.String? description = default !, global::System.String? descriptionHtml = default !, global::System.Int64? leaderId = default !, global::System.String? leaderName = default !, global::System.Int64? membersCount = default !, global::System.String? motto = default !, global::System.String? tag = default !, global::System.DateTimeOffset? updatedAt = default !) + { + this.__typename = __typename ?? throw new global::System.ArgumentNullException(nameof(__typename)); + ClanId = clanId; + JoinedAt = joinedAt; + Role = role; + RoleLocalized = roleLocalized; + Name = name; + CreatedAt = createdAt; + CreatorId = creatorId; + CreatorName = creatorName; + Description = description; + DescriptionHtml = descriptionHtml; + LeaderId = leaderId; + LeaderName = leaderName; + MembersCount = membersCount; + Motto = motto; + Tag = tag; + UpdatedAt = updatedAt; + } + + public global::System.String __typename { get; } + + ///Clan ID + public global::System.Int64? ClanId { get; } + + ///Date of joining clan + public global::System.DateTimeOffset? JoinedAt { get; } + + ///Player clan role ID + public global::System.String? Role { get; } + + ///Player clan role + public global::System.String? RoleLocalized { get; } + + ///Clan name + public global::System.String? Name { get; } + + ///Date of clan creation + public global::System.DateTimeOffset? CreatedAt { get; } + + ///Clan creator account id + public global::System.Int64? CreatorId { get; } + + ///Clan creator nick + public global::System.String? CreatorName { get; } + + ///Clan description + public global::System.String? Description { get; } + + ///Html Clan description + public global::System.String? DescriptionHtml { get; } + + ///Clan commander accountId + public global::System.Int64? LeaderId { get; } + + ///Clan commander nick + public global::System.String? LeaderName { get; } + + ///Clan members count + public global::System.Int64? MembersCount { get; } + + ///Clan motto + public global::System.String? Motto { get; } + + ///Clan tag + public global::System.String? Tag { get; } + + ///Clan info updated at + public global::System.DateTimeOffset? UpdatedAt { get; } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs index 022dfa6..2ec6ddd 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -70,15 +70,15 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State { snapshot = session.CurrentSnapshot; }); - var resultInfo = new FindPlayersResultInfo(DeserializeNonNullableIFindPlayers_PlayersNonNullableArray(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "players")), entityIds, snapshot.Version); + var resultInfo = new FindPlayersResultInfo(DeserializeIFindPlayers_PlayersNonNullableArray(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "players")), entityIds, snapshot.Version); return (_resultDataFactory.Create(resultInfo), resultInfo); } - private global::System.Collections.Generic.IReadOnlyList DeserializeNonNullableIFindPlayers_PlayersNonNullableArray(global::System.Text.Json.JsonElement? obj) + private global::System.Collections.Generic.IReadOnlyList? DeserializeIFindPlayers_PlayersNonNullableArray(global::System.Text.Json.JsonElement? obj) { if (!obj.HasValue) { - throw new global::System.ArgumentNullException(); + return null; } var accountsSearchResponseItems = new global::System.Collections.Generic.List(); diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs index a3f7a90..bb0e909 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -22,17 +22,17 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State if (dataInfo is FindPlayersResultInfo info) { - return new FindPlayersResult(MapNonNullableIFindPlayers_PlayersNonNullableArray(info.Players, snapshot)); + return new FindPlayersResult(MapIFindPlayers_PlayersNonNullableArray(info.Players, snapshot)); } throw new global::System.ArgumentException("FindPlayersResultInfo expected."); } - private global::System.Collections.Generic.IReadOnlyList MapNonNullableIFindPlayers_PlayersNonNullableArray(global::System.Collections.Generic.IReadOnlyList? list, global::StrawberryShake.IEntityStoreSnapshot snapshot) + private global::System.Collections.Generic.IReadOnlyList? MapIFindPlayers_PlayersNonNullableArray(global::System.Collections.Generic.IReadOnlyList? list, global::StrawberryShake.IEntityStoreSnapshot snapshot) { if (list is null) { - throw new global::System.ArgumentNullException(); + return null; } var accountsSearchResponseItems = new global::System.Collections.Generic.List(); diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersResultInfo.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersResultInfo.WotBlitzStatisticsProClient.StrawberryShake.cs index 81d94ab..073e923 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersResultInfo.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/FindPlayersResultInfo.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -8,7 +8,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; private readonly global::System.UInt64 _version; - public FindPlayersResultInfo(global::System.Collections.Generic.IReadOnlyList players, global::System.Collections.Generic.IReadOnlyCollection entityIds, global::System.UInt64 version) + public FindPlayersResultInfo(global::System.Collections.Generic.IReadOnlyList? players, global::System.Collections.Generic.IReadOnlyCollection entityIds, global::System.UInt64 version) { Players = players; _entityIds = entityIds ?? throw new global::System.ArgumentNullException(nameof(entityIds)); @@ -18,7 +18,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State /// /// Finds Wargaming accounts by nick /// - public global::System.Collections.Generic.IReadOnlyList Players { get; } + public global::System.Collections.Generic.IReadOnlyList? Players { get; } public global::System.Collections.Generic.IReadOnlyCollection EntityIds => _entityIds; public global::System.UInt64 Version => _version; diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs index 8370a45..2403d85 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -11,11 +11,12 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State private readonly global::StrawberryShake.IOperationResultDataFactory _resultDataFactory; private readonly global::StrawberryShake.Serialization.ILeafValueParser _realmTypeParser; private readonly global::StrawberryShake.Serialization.ILeafValueParser _requestLanguageParser; + private readonly global::StrawberryShake.Serialization.ILeafValueParser _markOfMasteryParser; private readonly global::StrawberryShake.Serialization.ILeafValueParser _longParser; - private readonly global::StrawberryShake.Serialization.ILeafValueParser _stringParser; private readonly global::StrawberryShake.Serialization.ILeafValueParser _dateTimeParser; - private readonly global::StrawberryShake.Serialization.ILeafValueParser _decimalParser; + private readonly global::StrawberryShake.Serialization.ILeafValueParser _stringParser; private readonly global::StrawberryShake.Serialization.ILeafValueParser _floatParser; + private readonly global::StrawberryShake.Serialization.ILeafValueParser _decimalParser; private readonly global::StrawberryShake.Serialization.ILeafValueParser _intParser; private readonly global::StrawberryShake.Serialization.ILeafValueParser _booleanParser; public PlayerBuilder(global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer idSerializer, global::StrawberryShake.IOperationResultDataFactory resultDataFactory, global::StrawberryShake.Serialization.ISerializerResolver serializerResolver) @@ -25,11 +26,12 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State _resultDataFactory = resultDataFactory ?? throw new global::System.ArgumentNullException(nameof(resultDataFactory)); _realmTypeParser = serializerResolver.GetLeafValueParser("RealmType") ?? throw new global::System.ArgumentException("No serializer for type `RealmType` found."); _requestLanguageParser = serializerResolver.GetLeafValueParser("RequestLanguage") ?? throw new global::System.ArgumentException("No serializer for type `RequestLanguage` found."); + _markOfMasteryParser = serializerResolver.GetLeafValueParser("MarkOfMastery") ?? throw new global::System.ArgumentException("No serializer for type `MarkOfMastery` found."); _longParser = serializerResolver.GetLeafValueParser("Long") ?? throw new global::System.ArgumentException("No serializer for type `Long` found."); - _stringParser = serializerResolver.GetLeafValueParser("String") ?? throw new global::System.ArgumentException("No serializer for type `String` found."); _dateTimeParser = serializerResolver.GetLeafValueParser("DateTime") ?? throw new global::System.ArgumentException("No serializer for type `DateTime` found."); - _decimalParser = serializerResolver.GetLeafValueParser("Decimal") ?? throw new global::System.ArgumentException("No serializer for type `Decimal` found."); + _stringParser = serializerResolver.GetLeafValueParser("String") ?? throw new global::System.ArgumentException("No serializer for type `String` found."); _floatParser = serializerResolver.GetLeafValueParser("Float") ?? throw new global::System.ArgumentException("No serializer for type `Float` found."); + _decimalParser = serializerResolver.GetLeafValueParser("Decimal") ?? throw new global::System.ArgumentException("No serializer for type `Decimal` found."); _intParser = serializerResolver.GetLeafValueParser("Int") ?? throw new global::System.ArgumentException("No serializer for type `Int` found."); _booleanParser = serializerResolver.GetLeafValueParser("Boolean") ?? throw new global::System.ArgumentException("No serializer for type `Boolean` found."); } @@ -90,7 +92,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State var typename = obj.Value.GetProperty("__typename").GetString(); if (typename?.Equals("AccountInfoResponse", global::System.StringComparison.Ordinal) ?? false) { - return new global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountInfoResponseData(typename, accountId: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "accountId")), nickname: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "nickname")), createdAt: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "createdAt")), lastBattleTime: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "lastBattleTime")), battles: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "battles")), winRate: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "winRate")), avgDamage: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgDamage")), avgXp: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgXp")), avgTier: DeserializeNonNullableDouble(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgTier")), damageCoefficient: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "damageCoefficient")), survivalRate: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "survivalRate")), tanks: DeserializeIPlayer_AccountInfo_TanksNonNullableArray(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tanks"))); + return new global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountInfoResponseData(typename, accountId: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "accountId")), createdAt: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "createdAt")), lastBattleTime: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "lastBattleTime")), nickname: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "nickname")), maxFragsTankId: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "maxFragsTankId")), maxXpTankId: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "maxXpTankId")), battles: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "battles")), capturePoints: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "capturePoints")), damageDealt: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "damageDealt")), damageReceived: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "damageReceived")), droppedCapturePoints: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "droppedCapturePoints")), frags: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "frags")), frags8P: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "frags8P")), hits: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "hits")), losses: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "losses")), maxFrags: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "maxFrags")), maxXp: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "maxXp")), shots: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "shots")), spotted: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "spotted")), survivedBattles: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "survivedBattles")), winAndSurvived: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "winAndSurvived")), wins: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "wins")), xp: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "xp")), wn7: DeserializeNonNullableDouble(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "wn7")), winRate: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "winRate")), avgDamage: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgDamage")), avgXp: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgXp")), damageCoefficient: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "damageCoefficient")), survivalRate: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "survivalRate")), avgTier: DeserializeNonNullableDouble(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgTier")), clanInfo: DeserializeIPlayer_AccountInfo_ClanInfo(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "clanInfo")), tanks: DeserializeIPlayer_AccountInfo_TanksNonNullableArray(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tanks"))); } throw new global::System.NotSupportedException(); @@ -106,6 +108,16 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State return _longParser.Parse(obj.Value.GetInt64()!); } + private global::System.DateTimeOffset DeserializeNonNullableDateTimeOffset(global::System.Text.Json.JsonElement? obj) + { + if (!obj.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + return _dateTimeParser.Parse(obj.Value.GetString()!); + } + private global::System.String? DeserializeString(global::System.Text.Json.JsonElement? obj) { if (!obj.HasValue) @@ -116,14 +128,14 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State return _stringParser.Parse(obj.Value.GetString()!); } - private global::System.DateTimeOffset DeserializeNonNullableDateTimeOffset(global::System.Text.Json.JsonElement? obj) + private global::System.Double DeserializeNonNullableDouble(global::System.Text.Json.JsonElement? obj) { if (!obj.HasValue) { throw new global::System.ArgumentNullException(); } - return _dateTimeParser.Parse(obj.Value.GetString()!); + return _floatParser.Parse(obj.Value.GetDouble()!); } private global::System.Decimal DeserializeNonNullableDecimal(global::System.Text.Json.JsonElement? obj) @@ -136,14 +148,50 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State return _decimalParser.Parse(obj.Value.GetDecimal()!); } - private global::System.Double DeserializeNonNullableDouble(global::System.Text.Json.JsonElement? obj) + private global::WotBlitzStatisticsPro.Blazor.GraphQl.State.ClanInfoResponseData? DeserializeIPlayer_AccountInfo_ClanInfo(global::System.Text.Json.JsonElement? obj) + { + if (!obj.HasValue) + { + return null; + } + + var typename = obj.Value.GetProperty("__typename").GetString(); + if (typename?.Equals("ClanInfoResponse", global::System.StringComparison.Ordinal) ?? false) + { + return new global::WotBlitzStatisticsPro.Blazor.GraphQl.State.ClanInfoResponseData(typename, clanId: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "clanId")), joinedAt: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "joinedAt")), role: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "role")), roleLocalized: DeserializeNonNullableString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "roleLocalized")), name: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "name")), createdAt: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "createdAt")), creatorId: DeserializeInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "creatorId")), creatorName: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "creatorName")), description: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "description")), descriptionHtml: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "descriptionHtml")), leaderId: DeserializeInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "leaderId")), leaderName: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "leaderName")), membersCount: DeserializeInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "membersCount")), motto: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "motto")), tag: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tag")), updatedAt: DeserializeDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "updatedAt"))); + } + + throw new global::System.NotSupportedException(); + } + + private global::System.String DeserializeNonNullableString(global::System.Text.Json.JsonElement? obj) { if (!obj.HasValue) { throw new global::System.ArgumentNullException(); } - return _floatParser.Parse(obj.Value.GetDouble()!); + return _stringParser.Parse(obj.Value.GetString()!); + } + + private global::System.Int64? DeserializeInt64(global::System.Text.Json.JsonElement? obj) + { + if (!obj.HasValue) + { + return null; + } + + return _longParser.Parse(obj.Value.GetInt64()!); + } + + private global::System.DateTimeOffset? DeserializeDateTimeOffset(global::System.Text.Json.JsonElement? obj) + { + if (!obj.HasValue) + { + return null; + } + + return _dateTimeParser.Parse(obj.Value.GetString()!); } private global::System.Collections.Generic.IReadOnlyList? DeserializeIPlayer_AccountInfo_TanksNonNullableArray(global::System.Text.Json.JsonElement? obj) @@ -172,7 +220,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State var typename = obj.Value.GetProperty("__typename").GetString(); if (typename?.Equals("TankInfoResponse", global::System.StringComparison.Ordinal) ?? false) { - return new global::WotBlitzStatisticsPro.Blazor.GraphQl.State.TankInfoResponseData(typename, tankId: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tankId")), name: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "name")), tankNation: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tankNation")), tankType: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tankType")), tier: DeserializeNonNullableInt32(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tier")), isPremium: DeserializeNonNullableBoolean(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "isPremium")), lastBattleTime: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "lastBattleTime")), battles: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "battles")), winRate: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "winRate")), avgDamage: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgDamage")), avgXp: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgXp")), avgBattleLifeTimeInMinutes: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgBattleLifeTimeInMinutes")), damageCoefficient: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "damageCoefficient")), survivalRate: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "survivalRate"))); + return new global::WotBlitzStatisticsPro.Blazor.GraphQl.State.TankInfoResponseData(typename, tankId: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tankId")), battleLifeTimeInSeconds: DeserializeNonNullableInt32(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "battleLifeTimeInSeconds")), lastBattleTime: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "lastBattleTime")), markOfMastery: DeserializeNonNullableMarkOfMastery(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "markOfMastery")), battles: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "battles")), capturePoints: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "capturePoints")), damageDealt: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "damageDealt")), damageReceived: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "damageReceived")), droppedCapturePoints: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "droppedCapturePoints")), frags: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "frags")), frags8P: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "frags8P")), hits: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "hits")), losses: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "losses")), maxFrags: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "maxFrags")), maxXp: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "maxXp")), shots: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "shots")), spotted: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "spotted")), survivedBattles: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "survivedBattles")), winAndSurvived: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "winAndSurvived")), wins: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "wins")), xp: DeserializeNonNullableInt64(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "xp")), wn7: DeserializeNonNullableDouble(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "wn7")), winRate: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "winRate")), avgDamage: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgDamage")), avgXp: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgXp")), damageCoefficient: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "damageCoefficient")), survivalRate: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "survivalRate")), avgBattleLifeTimeInMinutes: DeserializeNonNullableDecimal(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgBattleLifeTimeInMinutes")), name: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "name")), tankNationId: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tankNationId")), tankNation: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tankNation")), tier: DeserializeNonNullableInt32(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tier")), tankTypeId: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tankTypeId")), tankType: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "tankType")), isPremium: DeserializeNonNullableBoolean(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "isPremium")), previewImage: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "previewImage")), normalImage: DeserializeString(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "normalImage"))); } throw new global::System.NotSupportedException(); @@ -188,6 +236,16 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State return _intParser.Parse(obj.Value.GetInt32()!); } + private global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery DeserializeNonNullableMarkOfMastery(global::System.Text.Json.JsonElement? obj) + { + if (!obj.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + return _markOfMasteryParser.Parse(obj.Value.GetString()!); + } + private global::System.Boolean DeserializeNonNullableBoolean(global::System.Text.Json.JsonElement? obj) { if (!obj.HasValue) diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs index b8e3ebb..fa5ae8b 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -33,7 +33,27 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State IPlayer_AccountInfo returnValue = default !; if (data.__typename.Equals("AccountInfoResponse", global::System.StringComparison.Ordinal)) { - returnValue = new Player_AccountInfo_AccountInfoResponse(data.AccountId ?? throw new global::System.ArgumentNullException(), data.Nickname, data.CreatedAt ?? throw new global::System.ArgumentNullException(), data.LastBattleTime ?? throw new global::System.ArgumentNullException(), data.Battles ?? throw new global::System.ArgumentNullException(), data.WinRate ?? throw new global::System.ArgumentNullException(), data.AvgDamage ?? throw new global::System.ArgumentNullException(), data.AvgXp ?? throw new global::System.ArgumentNullException(), data.AvgTier ?? throw new global::System.ArgumentNullException(), data.DamageCoefficient ?? throw new global::System.ArgumentNullException(), data.SurvivalRate ?? throw new global::System.ArgumentNullException(), MapIPlayer_AccountInfo_TanksNonNullableArray(data.Tanks, snapshot)); + returnValue = new Player_AccountInfo_AccountInfoResponse(data.AccountId ?? throw new global::System.ArgumentNullException(), data.CreatedAt ?? throw new global::System.ArgumentNullException(), data.LastBattleTime ?? throw new global::System.ArgumentNullException(), data.Nickname, data.MaxFragsTankId ?? throw new global::System.ArgumentNullException(), data.MaxXpTankId ?? throw new global::System.ArgumentNullException(), data.Battles ?? throw new global::System.ArgumentNullException(), data.CapturePoints ?? throw new global::System.ArgumentNullException(), data.DamageDealt ?? throw new global::System.ArgumentNullException(), data.DamageReceived ?? throw new global::System.ArgumentNullException(), data.DroppedCapturePoints ?? throw new global::System.ArgumentNullException(), data.Frags ?? throw new global::System.ArgumentNullException(), data.Frags8P ?? throw new global::System.ArgumentNullException(), data.Hits ?? throw new global::System.ArgumentNullException(), data.Losses ?? throw new global::System.ArgumentNullException(), data.MaxFrags ?? throw new global::System.ArgumentNullException(), data.MaxXp ?? throw new global::System.ArgumentNullException(), data.Shots ?? throw new global::System.ArgumentNullException(), data.Spotted ?? throw new global::System.ArgumentNullException(), data.SurvivedBattles ?? throw new global::System.ArgumentNullException(), data.WinAndSurvived ?? throw new global::System.ArgumentNullException(), data.Wins ?? throw new global::System.ArgumentNullException(), data.Xp ?? throw new global::System.ArgumentNullException(), data.Wn7 ?? throw new global::System.ArgumentNullException(), data.WinRate ?? throw new global::System.ArgumentNullException(), data.AvgDamage ?? throw new global::System.ArgumentNullException(), data.AvgXp ?? throw new global::System.ArgumentNullException(), data.DamageCoefficient ?? throw new global::System.ArgumentNullException(), data.SurvivalRate ?? throw new global::System.ArgumentNullException(), data.AvgTier ?? throw new global::System.ArgumentNullException(), MapIPlayer_AccountInfo_ClanInfo(data.ClanInfo, snapshot), MapIPlayer_AccountInfo_TanksNonNullableArray(data.Tanks, snapshot)); + } + else + { + throw new global::System.NotSupportedException(); + } + + return returnValue; + } + + private global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo_ClanInfo? MapIPlayer_AccountInfo_ClanInfo(global::WotBlitzStatisticsPro.Blazor.GraphQl.State.ClanInfoResponseData? data, global::StrawberryShake.IEntityStoreSnapshot snapshot) + { + if (data is null) + { + return null; + } + + IPlayer_AccountInfo_ClanInfo returnValue = default !; + if (data?.__typename.Equals("ClanInfoResponse", global::System.StringComparison.Ordinal) ?? false) + { + returnValue = new Player_AccountInfo_ClanInfo_ClanInfoResponse(data.ClanId ?? throw new global::System.ArgumentNullException(), data.JoinedAt ?? throw new global::System.ArgumentNullException(), data.Role, data.RoleLocalized ?? throw new global::System.ArgumentNullException(), data.Name, data.CreatedAt ?? throw new global::System.ArgumentNullException(), data.CreatorId, data.CreatorName, data.Description, data.DescriptionHtml, data.LeaderId, data.LeaderName, data.MembersCount, data.Motto, data.Tag, data.UpdatedAt); } else { @@ -64,7 +84,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State IPlayer_AccountInfo_Tanks returnValue = default !; if (data.__typename.Equals("TankInfoResponse", global::System.StringComparison.Ordinal)) { - returnValue = new Player_AccountInfo_Tanks_TankInfoResponse(data.TankId ?? throw new global::System.ArgumentNullException(), data.Name, data.TankNation, data.TankType, data.Tier ?? throw new global::System.ArgumentNullException(), data.IsPremium ?? throw new global::System.ArgumentNullException(), data.LastBattleTime ?? throw new global::System.ArgumentNullException(), data.Battles ?? throw new global::System.ArgumentNullException(), data.WinRate ?? throw new global::System.ArgumentNullException(), data.AvgDamage ?? throw new global::System.ArgumentNullException(), data.AvgXp ?? throw new global::System.ArgumentNullException(), data.AvgBattleLifeTimeInMinutes ?? throw new global::System.ArgumentNullException(), data.DamageCoefficient ?? throw new global::System.ArgumentNullException(), data.SurvivalRate ?? throw new global::System.ArgumentNullException()); + returnValue = new Player_AccountInfo_Tanks_TankInfoResponse(data.TankId ?? throw new global::System.ArgumentNullException(), data.BattleLifeTimeInSeconds ?? throw new global::System.ArgumentNullException(), data.LastBattleTime ?? throw new global::System.ArgumentNullException(), data.MarkOfMastery ?? throw new global::System.ArgumentNullException(), data.Battles ?? throw new global::System.ArgumentNullException(), data.CapturePoints ?? throw new global::System.ArgumentNullException(), data.DamageDealt ?? throw new global::System.ArgumentNullException(), data.DamageReceived ?? throw new global::System.ArgumentNullException(), data.DroppedCapturePoints ?? throw new global::System.ArgumentNullException(), data.Frags ?? throw new global::System.ArgumentNullException(), data.Frags8P ?? throw new global::System.ArgumentNullException(), data.Hits ?? throw new global::System.ArgumentNullException(), data.Losses ?? throw new global::System.ArgumentNullException(), data.MaxFrags ?? throw new global::System.ArgumentNullException(), data.MaxXp ?? throw new global::System.ArgumentNullException(), data.Shots ?? throw new global::System.ArgumentNullException(), data.Spotted ?? throw new global::System.ArgumentNullException(), data.SurvivedBattles ?? throw new global::System.ArgumentNullException(), data.WinAndSurvived ?? throw new global::System.ArgumentNullException(), data.Wins ?? throw new global::System.ArgumentNullException(), data.Xp ?? throw new global::System.ArgumentNullException(), data.Wn7 ?? throw new global::System.ArgumentNullException(), data.WinRate ?? throw new global::System.ArgumentNullException(), data.AvgDamage ?? throw new global::System.ArgumentNullException(), data.AvgXp ?? throw new global::System.ArgumentNullException(), data.DamageCoefficient ?? throw new global::System.ArgumentNullException(), data.SurvivalRate ?? throw new global::System.ArgumentNullException(), data.AvgBattleLifeTimeInMinutes ?? throw new global::System.ArgumentNullException(), data.Name, data.TankNationId, data.TankNation, data.Tier ?? throw new global::System.ArgumentNullException(), data.TankTypeId, data.TankType, data.IsPremium ?? throw new global::System.ArgumentNullException(), data.PreviewImage, data.NormalImage); } else { diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/TankInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/TankInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs index f979fc6..d06761e 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/TankInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/TankInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -7,23 +7,46 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] public partial class TankInfoResponseData { - public TankInfoResponseData(global::System.String __typename, global::System.Int64? tankId = default !, global::System.String? name = default !, global::System.String? tankNation = default !, global::System.String? tankType = default !, global::System.Int32? tier = default !, global::System.Boolean? isPremium = default !, global::System.DateTimeOffset? lastBattleTime = default !, global::System.Int64? battles = default !, global::System.Decimal? winRate = default !, global::System.Decimal? avgDamage = default !, global::System.Decimal? avgXp = default !, global::System.Decimal? avgBattleLifeTimeInMinutes = default !, global::System.Decimal? damageCoefficient = default !, global::System.Decimal? survivalRate = default !) + public TankInfoResponseData(global::System.String __typename, global::System.Int64? tankId = default !, global::System.Int32? battleLifeTimeInSeconds = default !, global::System.DateTimeOffset? lastBattleTime = default !, global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery? markOfMastery = default !, global::System.Int64? battles = default !, global::System.Int64? capturePoints = default !, global::System.Int64? damageDealt = default !, global::System.Int64? damageReceived = default !, global::System.Int64? droppedCapturePoints = default !, global::System.Int64? frags = default !, global::System.Int64? frags8P = default !, global::System.Int64? hits = default !, global::System.Int64? losses = default !, global::System.Int64? maxFrags = default !, global::System.Int64? maxXp = default !, global::System.Int64? shots = default !, global::System.Int64? spotted = default !, global::System.Int64? survivedBattles = default !, global::System.Int64? winAndSurvived = default !, global::System.Int64? wins = default !, global::System.Int64? xp = default !, global::System.Double? wn7 = default !, global::System.Decimal? winRate = default !, global::System.Decimal? avgDamage = default !, global::System.Decimal? avgXp = default !, global::System.Decimal? damageCoefficient = default !, global::System.Decimal? survivalRate = default !, global::System.Decimal? avgBattleLifeTimeInMinutes = default !, global::System.String? name = default !, global::System.String? tankNationId = default !, global::System.String? tankNation = default !, global::System.Int32? tier = default !, global::System.String? tankTypeId = default !, global::System.String? tankType = default !, global::System.Boolean? isPremium = default !, global::System.String? previewImage = default !, global::System.String? normalImage = default !) { this.__typename = __typename ?? throw new global::System.ArgumentNullException(nameof(__typename)); TankId = tankId; - Name = name; - TankNation = tankNation; - TankType = tankType; - Tier = tier; - IsPremium = isPremium; + BattleLifeTimeInSeconds = battleLifeTimeInSeconds; LastBattleTime = lastBattleTime; + MarkOfMastery = markOfMastery; Battles = battles; + CapturePoints = capturePoints; + DamageDealt = damageDealt; + DamageReceived = damageReceived; + DroppedCapturePoints = droppedCapturePoints; + Frags = frags; + Frags8P = frags8P; + Hits = hits; + Losses = losses; + MaxFrags = maxFrags; + MaxXp = maxXp; + Shots = shots; + Spotted = spotted; + SurvivedBattles = survivedBattles; + WinAndSurvived = winAndSurvived; + Wins = wins; + Xp = xp; + Wn7 = wn7; WinRate = winRate; AvgDamage = avgDamage; AvgXp = avgXp; - AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes; DamageCoefficient = damageCoefficient; SurvivalRate = survivalRate; + AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes; + Name = name; + TankNationId = tankNationId; + TankNation = tankNation; + Tier = tier; + TankTypeId = tankTypeId; + TankType = tankType; + IsPremium = isPremium; + PreviewImage = previewImage; + NormalImage = normalImage; } public global::System.String __typename { get; } @@ -31,27 +54,69 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///Tank identifier public global::System.Int64? TankId { get; } - ///Tank name - public global::System.String? Name { get; } - - ///Localized tank nation name - public global::System.String? TankNation { get; } - - ///Localized tank type name - public global::System.String? TankType { get; } - - ///Tank tier - public global::System.Int32? Tier { get; } - - ///Is it premium tank or not - public global::System.Boolean? IsPremium { get; } + ///Total time in battle until tank killed + public global::System.Int32? BattleLifeTimeInSeconds { get; } ///Last battle public global::System.DateTimeOffset? LastBattleTime { get; } + ///Mark of Mastery + public global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery? MarkOfMastery { get; } + ///Battles count public global::System.Int64? Battles { get; } + ///Base capture points + public global::System.Int64? CapturePoints { get; } + + ///Damage dealt + public global::System.Int64? DamageDealt { get; } + + ///Damage received + public global::System.Int64? DamageReceived { get; } + + ///Base dropped capture points + public global::System.Int64? DroppedCapturePoints { get; } + + ///Frags count + public global::System.Int64? Frags { get; } + + ///Frags count after 8 tier + public global::System.Int64? Frags8P { get; } + + ///Hits count + public global::System.Int64? Hits { get; } + + ///Losses count + public global::System.Int64? Losses { get; } + + ///Max frags per battle + public global::System.Int64? MaxFrags { get; } + + ///Max XP per battle + public global::System.Int64? MaxXp { get; } + + ///Shots count + public global::System.Int64? Shots { get; } + + ///Spotted vehicles count + public global::System.Int64? Spotted { get; } + + ///Amount of survived battles + public global::System.Int64? SurvivedBattles { get; } + + ///Amount of survived and wined battles + public global::System.Int64? WinAndSurvived { get; } + + ///Wins count + public global::System.Int64? Wins { get; } + + ///Total experience + public global::System.Int64? Xp { get; } + + ///Wn7 coefficient + public global::System.Double? Wn7 { get; } + ///Tank's win rate public global::System.Decimal? WinRate { get; } @@ -61,13 +126,40 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///Average XP public global::System.Decimal? AvgXp { get; } - ///Average life time in battle until tank is killed. - public global::System.Decimal? AvgBattleLifeTimeInMinutes { get; } - ///Damage coefficient public global::System.Decimal? DamageCoefficient { get; } ///Rate of survival public global::System.Decimal? SurvivalRate { get; } + + ///Average life time in battle until tank is killed. + public global::System.Decimal? AvgBattleLifeTimeInMinutes { get; } + + ///Tank name + public global::System.String? Name { get; } + + ///Tank nation dictionary identifier + public global::System.String? TankNationId { get; } + + ///Localized tank nation name + public global::System.String? TankNation { get; } + + ///Tank tier + public global::System.Int32? Tier { get; } + + ///Tank type dictionary identifier + public global::System.String? TankTypeId { get; } + + ///Localized tank type name + public global::System.String? TankType { get; } + + ///Is it premium tank or not + public global::System.Boolean? IsPremium { get; } + + ///Vehicle preview image + public global::System.String? PreviewImage { get; } + + ///Vehicle normal image + public global::System.String? NormalImage { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/graphql/PlayerInfo.graphql b/WotBlitzStatisticsPro.Blazor/graphql/PlayerInfo.graphql index 0fe3cdb..7349e6d 100644 --- a/WotBlitzStatisticsPro.Blazor/graphql/PlayerInfo.graphql +++ b/WotBlitzStatisticsPro.Blazor/graphql/PlayerInfo.graphql @@ -7,31 +7,91 @@ query player( realmType: $realmType, requestLanguage: $requestLanguage) { accountId - nickname createdAt lastBattleTime + nickname + maxFragsTankId + maxXpTankId battles + capturePoints + damageDealt + damageReceived + droppedCapturePoints + frags + frags8P + hits + losses + maxFrags + maxXp + shots + spotted + survivedBattles + winAndSurvived + wins + xp + wn7 winRate avgDamage avgXp - avgTier damageCoefficient survivalRate + avgTier + clanInfo { + clanId + joinedAt + role + roleLocalized + name + createdAt + creatorId + creatorName + description + descriptionHtml + leaderId + leaderName + membersCount + motto + tag + updatedAt + } tanks { tankId - name - tankNation - tankType - tier - isPremium + battleLifeTimeInSeconds lastBattleTime + markOfMastery battles + capturePoints + damageDealt + damageReceived + droppedCapturePoints + frags + frags8P + hits + losses + maxFrags + maxXp + shots + spotted + survivedBattles + winAndSurvived + wins + xp + wn7 winRate avgDamage avgXp - avgBattleLifeTimeInMinutes damageCoefficient survivalRate + avgBattleLifeTimeInMinutes + name + tankNationId + tankNation + tier + tankTypeId + tankType + isPremium + previewImage + normalImage } } } \ No newline at end of file diff --git a/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql b/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql index aa29f1f..360dc17 100644 --- a/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql +++ b/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql @@ -5,7 +5,7 @@ type Query { "Finds Wargaming accounts by nick" - players("Search string." accountNick: String! "Wargaming Realm." realmType: RealmType "Language for the output data." language: RequestLanguage): [AccountsSearchResponseItem!]! + players("Search string." accountNick: String! "Wargaming Realm." realmType: RealmType "Language for the output data." language: RequestLanguage): [AccountsSearchResponseItem!] "Finds clans by search string" clans("Search string." searchString: String! "Wargaming Realm." realmType: RealmType "Language for the output data." language: RequestLanguage): [ClanSearchResponseItem!] "Gathers all account information" @@ -279,6 +279,10 @@ type TankInfoResponse { tankType: String "Is it premium tank or not" isPremium: Boolean! + "Vehicle preview image" + previewImage: String + "Vehicle normal image" + normalImage: String } "Request for update dictionaries mutation"