From 4430a938cafc7ac087bc0bc62f447a5acc499eee Mon Sep 17 00:00:00 2001 From: Mikhail Shabanov Date: Fri, 4 Jun 2021 15:35:53 +0200 Subject: [PATCH] chore: cliend datamodel refactoring --- .../Services/GraphQlBackendServiceTests.cs | 10 +- ...litzStatisticsProClient.StrawberryShake.cs | 14 +- ...litzStatisticsProClient.StrawberryShake.cs | 18 +- ...litzStatisticsProClient.StrawberryShake.cs | 16 +- ...litzStatisticsProClient.StrawberryShake.cs | 20 +- ...litzStatisticsProClient.StrawberryShake.cs | 52 +++ ...litzStatisticsProClient.StrawberryShake.cs | 92 +++++ ...litzStatisticsProClient.StrawberryShake.cs | 37 ++ ...litzStatisticsProClient.StrawberryShake.cs | 14 +- ...litzStatisticsProClient.StrawberryShake.cs | 26 +- ...litzStatisticsProClient.StrawberryShake.cs | 16 +- ...litzStatisticsProClient.StrawberryShake.cs | 31 +- ...litzStatisticsProClient.StrawberryShake.cs | 67 ++++ ...litzStatisticsProClient.StrawberryShake.cs | 219 ++++++------ ...litzStatisticsProClient.StrawberryShake.cs | 42 +++ ...litzStatisticsProClient.StrawberryShake.cs | 161 +-------- ...litzStatisticsProClient.StrawberryShake.cs | 81 +---- ...litzStatisticsProClient.StrawberryShake.cs | 186 +---------- ...litzStatisticsProClient.StrawberryShake.cs | 21 +- ...litzStatisticsProClient.StrawberryShake.cs | 56 +--- ...litzStatisticsProClient.StrawberryShake.cs | 32 ++ ...litzStatisticsProClient.StrawberryShake.cs | 132 ++++++++ ...litzStatisticsProClient.StrawberryShake.cs | 77 +++++ ...litzStatisticsProClient.StrawberryShake.cs | 219 ++++++------ ...litzStatisticsProClient.StrawberryShake.cs | 223 +++++++------ ...litzStatisticsProClient.StrawberryShake.cs | 34 +- ...litzStatisticsProClient.StrawberryShake.cs | 314 ++++++++--------- ...litzStatisticsProClient.StrawberryShake.cs | 24 +- ...litzStatisticsProClient.StrawberryShake.cs | 12 + ...litzStatisticsProClient.StrawberryShake.cs | 12 +- ...litzStatisticsProClient.StrawberryShake.cs | 315 +++++++++++++++++- ...litzStatisticsProClient.StrawberryShake.cs | 4 +- ...litzStatisticsProClient.StrawberryShake.cs | 170 +++++----- .../Pages/FindClanListItem.razor | 2 +- .../Pages/FindPlayerListItem.razor | 2 +- .../Pages/PlayerInfoLayoutBase.cs | 4 +- .../Pages/PlayerInfoOverview.razor | 2 +- .../Pages/SearchDialog.razor | 4 +- .../Pages/SearchDialogTypeBase.cs | 8 +- WotBlitzStatisticsPro.Blazor/Program.cs | 4 +- .../Services/GraphQlBackendService.cs | 6 +- .../Services/IGraphQlBackendService.cs | 6 +- .../Mock/GraphQlBackendMockService.cs | 38 +-- .../graphql/FindClans.graphql | 14 +- .../graphql/FindPlayers.graphql | 16 +- .../graphql/PlayerInfo.graphql | 223 +++++++------ .../graphql/schema.graphql | 250 ++++++++------ 47 files changed, 1855 insertions(+), 1471 deletions(-) create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/IAccount.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/IClan.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/IClanShortInfo.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/IMedal.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/IPlayerShortInfo.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/ISection.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/IStatistics.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/ITank.WotBlitzStatisticsProClient.StrawberryShake.cs create mode 100644 WotBlitzStatisticsPro.Blazor/Generated/State/IStatisticsData.WotBlitzStatisticsProClient.StrawberryShake.cs diff --git a/WotBlitzStatisticsPro.Blazor.Tests/Services/GraphQlBackendServiceTests.cs b/WotBlitzStatisticsPro.Blazor.Tests/Services/GraphQlBackendServiceTests.cs index ac6e285..8c24a35 100644 --- a/WotBlitzStatisticsPro.Blazor.Tests/Services/GraphQlBackendServiceTests.cs +++ b/WotBlitzStatisticsPro.Blazor.Tests/Services/GraphQlBackendServiceTests.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Linq; using System.Threading; using System.Threading.Tasks; using FluentAssertions; @@ -158,7 +159,7 @@ namespace WotBlitzStatisticsPro.Blazor.Tests.Services _findPlayersErrors = new List(); _findPlayersResultMock = new(); _findPlayersOperationResultMock = new(); - _findPlayersResultMock.SetupGet(r => r.Players).Returns(players); + _findPlayersResultMock.SetupGet(r => r.Players).Returns(players.Select(c => c as IFindPlayers_Players).ToList()); _findPlayersOperationResultMock.SetupGet(r => r.Errors).Returns(_findPlayersErrors); _findPlayersQueryMock.Setup(q => q.ExecuteAsync( @@ -176,7 +177,7 @@ namespace WotBlitzStatisticsPro.Blazor.Tests.Services _findClansErrors = new List(); _findClansResultMock = new(); _findClansOperationResultMock = new(); - _findClansResultMock.SetupGet(r => r.Clans).Returns(clans); + _findClansResultMock.SetupGet(r => r.Clans).Returns(clans.Select(c => c as IFindClans_Clans).ToList()); _findClansOperationResultMock.SetupGet(r => r.Errors).Returns(_findClansErrors); _findClanQueryMock.Setup(q => q.ExecuteAsync( @@ -194,8 +195,9 @@ namespace WotBlitzStatisticsPro.Blazor.Tests.Services _playerInfoErrors = new List(); _playerInfoResultMock = new(); _playerInfoOperationResultMock = new(); - _playerInfoResultMock.SetupGet(r => r.AccountInfo).Returns(result.accountInfo); - _playerInfoResultMock.SetupGet(r => r.AccountMedals).Returns(new Player_AccountMedals_AccountAchievementsResponse(CurrentAccountId, result.achievementsBySection)); + _playerInfoResultMock.SetupGet(r => r.AccountInfo).Returns(result.accountInfo as IPlayer_AccountInfo); + _playerInfoResultMock.SetupGet(r => r.AccountMedals).Returns(new Player_AccountMedals_AccountAchievementsResponse(CurrentAccountId, + result.achievementsBySection.Select(a => a as IPlayer_AccountMedals_Sections).ToList())); _playerInfoOperationResultMock.SetupGet(r => r.Errors).Returns(_findClansErrors); _playerQueryMock.Setup(q => q.ExecuteAsync( diff --git a/WotBlitzStatisticsPro.Blazor/Generated/FindClansQuery.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/FindClansQuery.WotBlitzStatisticsProClient.StrawberryShake.cs index 24ab39e..03cc454 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/FindClansQuery.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/FindClansQuery.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,13 +9,17 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// query FindClans($searchString: String!, $realmType: RealmType!, $language: RequestLanguage!) { /// clans(searchString: $searchString, realmType: $realmType, language: $language) { /// __typename - /// clanId - /// createdAt - /// membersCount - /// name - /// tag + /// ... clanShortInfo /// } /// } + /// + /// fragment clanShortInfo on ClanSearchResponseItem { + /// clanId + /// createdAt + /// membersCount + /// name + /// tag + /// } /// /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] diff --git a/WotBlitzStatisticsPro.Blazor/Generated/FindClansQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/FindClansQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs index f64ee1a..cbf08f8 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/FindClansQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/FindClansQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,13 +9,17 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// query FindClans($searchString: String!, $realmType: RealmType!, $language: RequestLanguage!) { /// clans(searchString: $searchString, realmType: $realmType, language: $language) { /// __typename - /// clanId - /// createdAt - /// membersCount - /// name - /// tag + /// ... clanShortInfo /// } /// } + /// + /// fragment clanShortInfo on ClanSearchResponseItem { + /// clanId + /// createdAt + /// membersCount + /// name + /// tag + /// } /// /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] @@ -27,8 +31,8 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl public static FindClansQueryDocument Instance { get; } = new FindClansQueryDocument(); public global::StrawberryShake.OperationKind Kind => global::StrawberryShake.OperationKind.Query; - public global::System.ReadOnlySpan Body => new global::System.Byte[]{0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6c, 0x61, 0x6e, 0x73, 0x28, 0x24, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x20, 0x53, 0x74, 0x72, 0x69, 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, 0x6c, 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, 0x63, 0x6c, 0x61, 0x6e, 0x73, 0x28, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x20, 0x24, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 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, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x3a, 0x20, 0x24, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x29, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x20, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x61, 0x67, 0x20, 0x7d, 0x20, 0x7d}; - public global::StrawberryShake.DocumentHash Hash { get; } = new global::StrawberryShake.DocumentHash("md5Hash", "11fca1eacd03c231507100b687abb039"); + public global::System.ReadOnlySpan Body => new global::System.Byte[]{0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6c, 0x61, 0x6e, 0x73, 0x28, 0x24, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x20, 0x53, 0x74, 0x72, 0x69, 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, 0x6c, 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, 0x63, 0x6c, 0x61, 0x6e, 0x73, 0x28, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x20, 0x24, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 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, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x3a, 0x20, 0x24, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x29, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x20, 0x6f, 0x6e, 0x20, 0x43, 0x6c, 0x61, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x20, 0x7b, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x20, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x61, 0x67, 0x20, 0x7d}; + public global::StrawberryShake.DocumentHash Hash { get; } = new global::StrawberryShake.DocumentHash("md5Hash", "2e482e826748b6c1274f2922af0a71e1"); public override global::System.String ToString() { #if NETSTANDARD2_0 diff --git a/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersQuery.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersQuery.WotBlitzStatisticsProClient.StrawberryShake.cs index 576f4c4..eb16f00 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersQuery.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersQuery.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,14 +9,18 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// query FindPlayers($accountNick: String!, $realmType: RealmType!, $language: RequestLanguage!) { /// players(accountNick: $accountNick, realmType: $realmType, language: $language) { /// __typename - /// accountId - /// nickname - /// clanTag - /// lastBattle - /// battlesCount - /// winRate + /// ... playerShortInfo /// } /// } + /// + /// fragment playerShortInfo on AccountsSearchResponseItem { + /// accountId + /// nickname + /// clanTag + /// lastBattle + /// battlesCount + /// winRate + /// } /// /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] diff --git a/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs index 88de7d2..5b44380 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/FindPlayersQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,14 +9,18 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// query FindPlayers($accountNick: String!, $realmType: RealmType!, $language: RequestLanguage!) { /// players(accountNick: $accountNick, realmType: $realmType, language: $language) { /// __typename - /// accountId - /// nickname - /// clanTag - /// lastBattle - /// battlesCount - /// winRate + /// ... playerShortInfo /// } /// } + /// + /// fragment playerShortInfo on AccountsSearchResponseItem { + /// accountId + /// nickname + /// clanTag + /// lastBattle + /// battlesCount + /// winRate + /// } /// /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] @@ -28,8 +32,8 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl public static FindPlayersQueryDocument Instance { get; } = new FindPlayersQueryDocument(); public global::StrawberryShake.OperationKind Kind => global::StrawberryShake.OperationKind.Query; - public global::System.ReadOnlySpan Body => new global::System.Byte[]{0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x28, 0x24, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x69, 0x63, 0x6b, 0x3a, 0x20, 0x53, 0x74, 0x72, 0x69, 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, 0x6c, 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, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x28, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x69, 0x63, 0x6b, 0x3a, 0x20, 0x24, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x69, 0x63, 0x6b, 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, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x3a, 0x20, 0x24, 0x6c, 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, 0x6c, 0x61, 0x6e, 0x54, 0x61, 0x67, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x20, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x20, 0x7d, 0x20, 0x7d}; - public global::StrawberryShake.DocumentHash Hash { get; } = new global::StrawberryShake.DocumentHash("md5Hash", "8939fb5a67dcef3387474f884fdfddb7"); + public global::System.ReadOnlySpan Body => new global::System.Byte[]{0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x28, 0x24, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x69, 0x63, 0x6b, 0x3a, 0x20, 0x53, 0x74, 0x72, 0x69, 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, 0x6c, 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, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x28, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x69, 0x63, 0x6b, 0x3a, 0x20, 0x24, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x69, 0x63, 0x6b, 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, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x3a, 0x20, 0x24, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x29, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x20, 0x6f, 0x6e, 0x20, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x20, 0x7b, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x20, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x54, 0x61, 0x67, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x20, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x77, 0x69, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x20, 0x7d}; + public global::StrawberryShake.DocumentHash Hash { get; } = new global::StrawberryShake.DocumentHash("md5Hash", "be09b021ccb0073e1af5990eb58cbff6"); public override global::System.String ToString() { #if NETSTANDARD2_0 diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IAccount.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IAccount.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..53619f2 --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/IAccount.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,52 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Information about player + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public interface IAccount : IStatistics + { + /// + /// Player account identifier + /// + public global::System.Int64 AccountId { get; } + + /// + /// Account creation date + /// + public global::System.DateTimeOffset CreatedAt { 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; } + + /// + /// Average tier + /// + public global::System.Double AvgTier { get; } + + /// + /// Clan info + /// + public global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo_ClanInfo? ClanInfo { get; } + + /// + /// All player's tanks + /// + public global::System.Collections.Generic.IReadOnlyList? Tanks { get; } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IClan.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IClan.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..1f2762b --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/IClan.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 IClan + { + /// + /// 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/IClanShortInfo.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IClanShortInfo.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..6598cb4 --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/IClanShortInfo.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,37 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Found clans list item + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public interface IClanShortInfo + { + /// + /// Clan Id + /// + public global::System.Int64 ClanId { get; } + + /// + /// Clan created at. (UNIX Epoch time) + /// + public global::System.Int32 CreatedAt { get; } + + /// + /// Clan members count + /// + public global::System.Int32 MembersCount { get; } + + /// + /// Clan Name + /// + public global::System.String? Name { get; } + + /// + /// Clan Tag + /// + public global::System.String? Tag { get; } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IFindClansQuery.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IFindClansQuery.WotBlitzStatisticsProClient.StrawberryShake.cs index 632ac63..08714c2 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IFindClansQuery.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IFindClansQuery.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,13 +9,17 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// query FindClans($searchString: String!, $realmType: RealmType!, $language: RequestLanguage!) { /// clans(searchString: $searchString, realmType: $realmType, language: $language) { /// __typename - /// clanId - /// createdAt - /// membersCount - /// name - /// tag + /// ... clanShortInfo /// } /// } + /// + /// fragment clanShortInfo on ClanSearchResponseItem { + /// clanId + /// createdAt + /// membersCount + /// name + /// tag + /// } /// /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IFindClans_Clans.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IFindClans_Clans.WotBlitzStatisticsProClient.StrawberryShake.cs index fda3c07..74cf45f 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IFindClans_Clans.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IFindClans_Clans.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -7,31 +7,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// Found clans list item /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] - public interface IFindClans_Clans + public interface IFindClans_Clans : IClanShortInfo { - /// - /// Clan Id - /// - public global::System.Int64 ClanId { get; } - - /// - /// Clan created at. (UNIX Epoch time) - /// - public global::System.Int32 CreatedAt { get; } - - /// - /// Clan members count - /// - public global::System.Int32 MembersCount { get; } - - /// - /// Clan Name - /// - public global::System.String? Name { get; } - - /// - /// Clan Tag - /// - public global::System.String? Tag { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayersQuery.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayersQuery.WotBlitzStatisticsProClient.StrawberryShake.cs index a7f0ab7..55ea95c 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayersQuery.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayersQuery.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,14 +9,18 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// query FindPlayers($accountNick: String!, $realmType: RealmType!, $language: RequestLanguage!) { /// players(accountNick: $accountNick, realmType: $realmType, language: $language) { /// __typename - /// accountId - /// nickname - /// clanTag - /// lastBattle - /// battlesCount - /// winRate + /// ... playerShortInfo /// } /// } + /// + /// fragment playerShortInfo on AccountsSearchResponseItem { + /// accountId + /// nickname + /// clanTag + /// lastBattle + /// battlesCount + /// winRate + /// } /// /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayers_Players.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayers_Players.WotBlitzStatisticsProClient.StrawberryShake.cs index 531fa21..845c085 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayers_Players.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IFindPlayers_Players.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -7,36 +7,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// Account search result item /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] - public interface IFindPlayers_Players + public interface IFindPlayers_Players : IPlayerShortInfo { - /// - /// Player accountId - /// - public global::System.Int64 AccountId { get; } - - /// - /// Player nick - /// - public global::System.String? Nickname { get; } - - /// - /// Clan tag. Null if player doesn't have clan membership - /// - public global::System.String? ClanTag { get; } - - /// - /// Last battle time - /// - public global::System.DateTimeOffset LastBattle { get; } - - /// - /// Player's battles count - /// - public global::System.Int64 BattlesCount { get; } - - /// - /// Win rate from 0 to 100 - /// - public global::System.Int32 WinRate { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IMedal.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IMedal.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..e56cf2d --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/IMedal.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,67 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Player's achievement information + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public interface IMedal + { + /// + /// Achievement Id + /// + public global::System.String Id { get; } + + /// + /// Achievement name + /// + public global::System.String? Name { get; } + + /// + /// Achievement type + /// + public global::System.String? MedalType { get; } + + /// + /// Achievement condition + /// + public global::System.String? Condition { get; } + + /// + /// Achievement description + /// + public global::System.String? Description { get; } + + /// + /// Achievement value + /// + public global::System.Int32 AchievementValue { get; } + + /// + /// Achievement max series value + /// + public global::System.Int32? MaxSeriesValue { get; } + + /// + /// Achievement normal sized image + /// + public global::System.String? Image { get; } + + /// + /// Achievement big image + /// + public global::System.String? ImageBig { get; } + + /// + /// Order + /// + public global::System.Int64? Order { get; } + + /// + /// Section Id + /// + public global::System.String SectionId { get; } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs index 01abf36..75f6e59 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IPlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,124 +9,125 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// query Player($accountId: Long!, $realmType: RealmType!, $requestLanguage: RequestLanguage!) { /// accountInfo(accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { /// __typename - /// accountId - /// 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 - /// damageCoefficient - /// survivalRate - /// avgTier - /// clanInfo { - /// __typename - /// clanId - /// joinedAt - /// role - /// roleLocalized - /// name - /// createdAt - /// creatorId - /// creatorName - /// description - /// descriptionHtml - /// leaderId - /// leaderName - /// membersCount - /// motto - /// tag - /// updatedAt - /// } - /// tanks { - /// __typename - /// tankId - /// battleLifeTimeInSeconds - /// lastBattleTime - /// markOfMastery - /// battles - /// capturePoints - /// damageDealt - /// damageReceived - /// droppedCapturePoints - /// frags - /// frags8P - /// hits - /// losses - /// maxFrags - /// maxXp - /// shots - /// spotted - /// survivedBattles - /// winAndSurvived - /// wins - /// xp - /// wn7 - /// winRate - /// avgDamage - /// avgXp - /// damageCoefficient - /// survivalRate - /// avgBattleLifeTimeInMinutes - /// name - /// tankNationId - /// tankNation - /// tier - /// tankTypeId - /// tankType - /// isPremium - /// previewImage - /// normalImage - /// } + /// ... account /// } /// accountMedals(accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { /// __typename /// accountId /// sections { /// __typename - /// sectionId - /// order - /// name - /// medals { - /// __typename - /// id - /// name - /// medalType - /// condition - /// description - /// achievementValue - /// maxSeriesValue - /// image - /// imageBig - /// order - /// sectionId - /// ... on Achievement { - /// id - /// } - /// } + /// ... section /// } /// } /// } + /// + /// fragment account on AccountInfoResponse { + /// accountId + /// createdAt + /// nickname + /// maxFragsTankId + /// maxXpTankId + /// avgTier + /// ... statistics + /// clanInfo { + /// __typename + /// ... clan + /// } + /// tanks { + /// __typename + /// ... tank + /// } + /// } + /// + /// fragment statistics on Statistics { + /// lastBattleTime + /// battles + /// capturePoints + /// damageDealt + /// damageReceived + /// droppedCapturePoints + /// frags + /// frags8P + /// hits + /// losses + /// maxFrags + /// maxXp + /// shots + /// spotted + /// survivedBattles + /// winAndSurvived + /// wins + /// xp + /// wn7 + /// winRate + /// avgDamage + /// avgXp + /// damageCoefficient + /// survivalRate + /// } + /// + /// fragment clan on ClanInfoResponse { + /// clanId + /// joinedAt + /// role + /// roleLocalized + /// name + /// createdAt + /// creatorId + /// creatorName + /// description + /// descriptionHtml + /// leaderId + /// leaderName + /// membersCount + /// motto + /// tag + /// updatedAt + /// } + /// + /// fragment tank on TankInfoResponse { + /// tankId + /// battleLifeTimeInSeconds + /// markOfMastery + /// avgBattleLifeTimeInMinutes + /// name + /// tankNationId + /// tankNation + /// tier + /// tankTypeId + /// tankType + /// isPremium + /// previewImage + /// normalImage + /// ... statistics + /// } + /// + /// fragment section on AchievementSection { + /// sectionId + /// order + /// name + /// medals { + /// __typename + /// ... medal + /// ... on Achievement { + /// id + /// } + /// } + /// } + /// + /// fragment medal on Achievement { + /// id + /// name + /// medalType + /// condition + /// description + /// achievementValue + /// maxSeriesValue + /// image + /// imageBig + /// order + /// sectionId + /// } /// /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayerShortInfo.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayerShortInfo.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..73322c4 --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayerShortInfo.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,42 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Account search result item + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public interface IPlayerShortInfo + { + /// + /// Player accountId + /// + public global::System.Int64 AccountId { get; } + + /// + /// Player nick + /// + public global::System.String? Nickname { get; } + + /// + /// Clan tag. Null if player doesn't have clan membership + /// + public global::System.String? ClanTag { get; } + + /// + /// Last battle time + /// + public global::System.DateTimeOffset LastBattle { get; } + + /// + /// Player's battles count + /// + public global::System.Int64 BattlesCount { get; } + + /// + /// Win rate from 0 to 100 + /// + public global::System.Int32 WinRate { get; } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo.WotBlitzStatisticsProClient.StrawberryShake.cs index 5f6cd1b..9f20a2f 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -7,166 +7,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// Information about player /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] - public interface IPlayer_AccountInfo + public interface IPlayer_AccountInfo : IAccount { - /// - /// Player account identifier - /// - public global::System.Int64 AccountId { 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; } - - /// - /// Player's average damage - /// - public global::System.Decimal AvgDamage { get; } - - /// - /// Player's average XP - /// - public global::System.Decimal AvgXp { 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.IPlayer_AccountInfo_ClanInfo? ClanInfo { get; } - - /// - /// All player's tanks - /// - public global::System.Collections.Generic.IReadOnlyList? Tanks { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo.WotBlitzStatisticsProClient.StrawberryShake.cs index 51633fb..25d88e9 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_ClanInfo.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -7,86 +7,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// Clan information /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] - public interface IPlayer_AccountInfo_ClanInfo + public interface IPlayer_AccountInfo_ClanInfo : IClan { - /// - /// 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_Tanks.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_Tanks.WotBlitzStatisticsProClient.StrawberryShake.cs index 9903550..751e3c8 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_Tanks.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountInfo_Tanks.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -7,191 +7,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// Information about player's tank /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] - public interface IPlayer_AccountInfo_Tanks + public interface IPlayer_AccountInfo_Tanks : ITank { - /// - /// Tank identifier - /// - public global::System.Int64 TankId { 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; } - - /// - /// Average tank's damage - /// - public global::System.Decimal AvgDamage { get; } - - /// - /// Average XP - /// - public global::System.Decimal AvgXp { 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/Generated/IPlayer_AccountMedals_Sections.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountMedals_Sections.WotBlitzStatisticsProClient.StrawberryShake.cs index 2f6782d..d066b7e 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountMedals_Sections.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountMedals_Sections.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -7,26 +7,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// Represents achievement section info and it's achievements list /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] - public interface IPlayer_AccountMedals_Sections + public interface IPlayer_AccountMedals_Sections : ISection { - /// - /// Section Identifier - /// - public global::System.String SectionId { get; } - - /// - /// Section order - /// - public global::System.Int32 Order { get; } - - /// - /// Section Name - /// - public global::System.String Name { get; } - - /// - /// Achievements in the section - /// - public global::System.Collections.Generic.IReadOnlyList? Medals { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountMedals_Sections_Medals.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountMedals_Sections_Medals.WotBlitzStatisticsProClient.StrawberryShake.cs index 6fd3a18..d9fe937 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountMedals_Sections_Medals.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/IPlayer_AccountMedals_Sections_Medals.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -7,61 +7,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// Player's achievement information /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] - public interface IPlayer_AccountMedals_Sections_Medals + public interface IPlayer_AccountMedals_Sections_Medals : IMedal { - /// - /// Achievement Id - /// - public global::System.String Id { get; } - - /// - /// Achievement name - /// - public global::System.String? Name { get; } - - /// - /// Achievement type - /// - public global::System.String? MedalType { get; } - - /// - /// Achievement condition - /// - public global::System.String? Condition { get; } - - /// - /// Achievement description - /// - public global::System.String? Description { get; } - - /// - /// Achievement value - /// - public global::System.Int32 AchievementValue { get; } - - /// - /// Achievement max series value - /// - public global::System.Int32? MaxSeriesValue { get; } - - /// - /// Achievement normal sized image - /// - public global::System.String? Image { get; } - - /// - /// Achievement big image - /// - public global::System.String? ImageBig { get; } - - /// - /// Order - /// - public global::System.Int64? Order { get; } - - /// - /// Section Id - /// - public global::System.String SectionId { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/ISection.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/ISection.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..db634bb --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/ISection.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,32 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Represents achievement section info and it's achievements list + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public interface ISection + { + /// + /// Section Identifier + /// + public global::System.String SectionId { get; } + + /// + /// Section order + /// + public global::System.Int32 Order { get; } + + /// + /// Section Name + /// + public global::System.String Name { get; } + + /// + /// Achievements in the section + /// + public global::System.Collections.Generic.IReadOnlyList? Medals { get; } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/IStatistics.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/IStatistics.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..f6d4e81 --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/IStatistics.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,132 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Represents game's statistics + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public interface IStatistics + { + /// + /// Last battle time + /// + public global::System.DateTimeOffset LastBattleTime { 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 frags 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 won 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; } + + /// + /// Player's average damage + /// + public global::System.Decimal AvgDamage { get; } + + /// + /// Player's average XP + /// + public global::System.Decimal AvgXp { get; } + + /// + /// Damage coefficient + /// + public global::System.Decimal DamageCoefficient { get; } + + /// + /// Rate of survival + /// + public global::System.Decimal SurvivalRate { get; } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/ITank.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/ITank.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..12c0251 --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/ITank.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,77 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl +{ + /// + /// Information about player's tank + /// + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public interface ITank : IStatistics + { + /// + /// Tank identifier + /// + public global::System.Int64 TankId { get; } + + /// + /// Total time in battle until tank killed + /// + public global::System.Int32 BattleLifeTimeInSeconds { get; } + + /// + /// Mark of Mastery + /// + public global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery MarkOfMastery { 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/PlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/PlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs index dbf0cc0..f2d6e84 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/PlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/PlayerQuery.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,124 +9,125 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// query Player($accountId: Long!, $realmType: RealmType!, $requestLanguage: RequestLanguage!) { /// accountInfo(accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { /// __typename - /// accountId - /// 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 - /// damageCoefficient - /// survivalRate - /// avgTier - /// clanInfo { - /// __typename - /// clanId - /// joinedAt - /// role - /// roleLocalized - /// name - /// createdAt - /// creatorId - /// creatorName - /// description - /// descriptionHtml - /// leaderId - /// leaderName - /// membersCount - /// motto - /// tag - /// updatedAt - /// } - /// tanks { - /// __typename - /// tankId - /// battleLifeTimeInSeconds - /// lastBattleTime - /// markOfMastery - /// battles - /// capturePoints - /// damageDealt - /// damageReceived - /// droppedCapturePoints - /// frags - /// frags8P - /// hits - /// losses - /// maxFrags - /// maxXp - /// shots - /// spotted - /// survivedBattles - /// winAndSurvived - /// wins - /// xp - /// wn7 - /// winRate - /// avgDamage - /// avgXp - /// damageCoefficient - /// survivalRate - /// avgBattleLifeTimeInMinutes - /// name - /// tankNationId - /// tankNation - /// tier - /// tankTypeId - /// tankType - /// isPremium - /// previewImage - /// normalImage - /// } + /// ... account /// } /// accountMedals(accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { /// __typename /// accountId /// sections { /// __typename - /// sectionId - /// order - /// name - /// medals { - /// __typename - /// id - /// name - /// medalType - /// condition - /// description - /// achievementValue - /// maxSeriesValue - /// image - /// imageBig - /// order - /// sectionId - /// ... on Achievement { - /// id - /// } - /// } + /// ... section /// } /// } /// } + /// + /// fragment account on AccountInfoResponse { + /// accountId + /// createdAt + /// nickname + /// maxFragsTankId + /// maxXpTankId + /// avgTier + /// ... statistics + /// clanInfo { + /// __typename + /// ... clan + /// } + /// tanks { + /// __typename + /// ... tank + /// } + /// } + /// + /// fragment statistics on Statistics { + /// lastBattleTime + /// battles + /// capturePoints + /// damageDealt + /// damageReceived + /// droppedCapturePoints + /// frags + /// frags8P + /// hits + /// losses + /// maxFrags + /// maxXp + /// shots + /// spotted + /// survivedBattles + /// winAndSurvived + /// wins + /// xp + /// wn7 + /// winRate + /// avgDamage + /// avgXp + /// damageCoefficient + /// survivalRate + /// } + /// + /// fragment clan on ClanInfoResponse { + /// clanId + /// joinedAt + /// role + /// roleLocalized + /// name + /// createdAt + /// creatorId + /// creatorName + /// description + /// descriptionHtml + /// leaderId + /// leaderName + /// membersCount + /// motto + /// tag + /// updatedAt + /// } + /// + /// fragment tank on TankInfoResponse { + /// tankId + /// battleLifeTimeInSeconds + /// markOfMastery + /// avgBattleLifeTimeInMinutes + /// name + /// tankNationId + /// tankNation + /// tier + /// tankTypeId + /// tankType + /// isPremium + /// previewImage + /// normalImage + /// ... statistics + /// } + /// + /// fragment section on AchievementSection { + /// sectionId + /// order + /// name + /// medals { + /// __typename + /// ... medal + /// ... on Achievement { + /// id + /// } + /// } + /// } + /// + /// fragment medal on Achievement { + /// id + /// name + /// medalType + /// condition + /// description + /// achievementValue + /// maxSeriesValue + /// image + /// imageBig + /// order + /// sectionId + /// } /// /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] diff --git a/WotBlitzStatisticsPro.Blazor/Generated/PlayerQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/PlayerQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs index 0fe3ad4..43c87c7 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/PlayerQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/PlayerQueryDocument.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,124 +9,125 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// query Player($accountId: Long!, $realmType: RealmType!, $requestLanguage: RequestLanguage!) { /// accountInfo(accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { /// __typename - /// accountId - /// 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 - /// damageCoefficient - /// survivalRate - /// avgTier - /// clanInfo { - /// __typename - /// clanId - /// joinedAt - /// role - /// roleLocalized - /// name - /// createdAt - /// creatorId - /// creatorName - /// description - /// descriptionHtml - /// leaderId - /// leaderName - /// membersCount - /// motto - /// tag - /// updatedAt - /// } - /// tanks { - /// __typename - /// tankId - /// battleLifeTimeInSeconds - /// lastBattleTime - /// markOfMastery - /// battles - /// capturePoints - /// damageDealt - /// damageReceived - /// droppedCapturePoints - /// frags - /// frags8P - /// hits - /// losses - /// maxFrags - /// maxXp - /// shots - /// spotted - /// survivedBattles - /// winAndSurvived - /// wins - /// xp - /// wn7 - /// winRate - /// avgDamage - /// avgXp - /// damageCoefficient - /// survivalRate - /// avgBattleLifeTimeInMinutes - /// name - /// tankNationId - /// tankNation - /// tier - /// tankTypeId - /// tankType - /// isPremium - /// previewImage - /// normalImage - /// } + /// ... account /// } /// accountMedals(accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { /// __typename /// accountId /// sections { /// __typename - /// sectionId - /// order - /// name - /// medals { - /// __typename - /// id - /// name - /// medalType - /// condition - /// description - /// achievementValue - /// maxSeriesValue - /// image - /// imageBig - /// order - /// sectionId - /// ... on Achievement { - /// id - /// } - /// } + /// ... section /// } /// } /// } + /// + /// fragment account on AccountInfoResponse { + /// accountId + /// createdAt + /// nickname + /// maxFragsTankId + /// maxXpTankId + /// avgTier + /// ... statistics + /// clanInfo { + /// __typename + /// ... clan + /// } + /// tanks { + /// __typename + /// ... tank + /// } + /// } + /// + /// fragment statistics on Statistics { + /// lastBattleTime + /// battles + /// capturePoints + /// damageDealt + /// damageReceived + /// droppedCapturePoints + /// frags + /// frags8P + /// hits + /// losses + /// maxFrags + /// maxXp + /// shots + /// spotted + /// survivedBattles + /// winAndSurvived + /// wins + /// xp + /// wn7 + /// winRate + /// avgDamage + /// avgXp + /// damageCoefficient + /// survivalRate + /// } + /// + /// fragment clan on ClanInfoResponse { + /// clanId + /// joinedAt + /// role + /// roleLocalized + /// name + /// createdAt + /// creatorId + /// creatorName + /// description + /// descriptionHtml + /// leaderId + /// leaderName + /// membersCount + /// motto + /// tag + /// updatedAt + /// } + /// + /// fragment tank on TankInfoResponse { + /// tankId + /// battleLifeTimeInSeconds + /// markOfMastery + /// avgBattleLifeTimeInMinutes + /// name + /// tankNationId + /// tankNation + /// tier + /// tankTypeId + /// tankType + /// isPremium + /// previewImage + /// normalImage + /// ... statistics + /// } + /// + /// fragment section on AchievementSection { + /// sectionId + /// order + /// name + /// medals { + /// __typename + /// ... medal + /// ... on Achievement { + /// id + /// } + /// } + /// } + /// + /// fragment medal on Achievement { + /// id + /// name + /// medalType + /// condition + /// description + /// achievementValue + /// maxSeriesValue + /// image + /// imageBig + /// order + /// sectionId + /// } /// /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] @@ -138,8 +139,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, 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, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4d, 0x65, 0x64, 0x61, 0x6c, 0x73, 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, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6d, 0x65, 0x64, 0x61, 0x6c, 0x73, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x69, 0x64, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6d, 0x65, 0x64, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x6d, 0x61, 0x78, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x69, 0x67, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x20, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x6f, 0x6e, 0x20, 0x41, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x7b, 0x20, 0x69, 0x64, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x7d}; - public global::StrawberryShake.DocumentHash Hash { get; } = new global::StrawberryShake.DocumentHash("md5Hash", "032972243d83d3556ee9d9b34cd35f25"); + 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, 0x2e, 0x2e, 0x2e, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x7d, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4d, 0x65, 0x64, 0x61, 0x6c, 0x73, 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, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x6f, 0x6e, 0x20, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x7b, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 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, 0x61, 0x76, 0x67, 0x54, 0x69, 0x65, 0x72, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x20, 0x7d, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x73, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x20, 0x7b, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 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, 0x7d, 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x63, 0x6c, 0x61, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x43, 0x6c, 0x61, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x7b, 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, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x74, 0x61, 0x6e, 0x6b, 0x20, 0x6f, 0x6e, 0x20, 0x54, 0x61, 0x6e, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x7b, 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, 0x6d, 0x61, 0x72, 0x6b, 0x4f, 0x66, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x79, 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, 0x2e, 0x2e, 0x2e, 0x20, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x20, 0x7d, 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x41, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x7b, 0x20, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6d, 0x65, 0x64, 0x61, 0x6c, 0x73, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x6d, 0x65, 0x64, 0x61, 0x6c, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x6f, 0x6e, 0x20, 0x41, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x7b, 0x20, 0x69, 0x64, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x7d, 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x6d, 0x65, 0x64, 0x61, 0x6c, 0x20, 0x6f, 0x6e, 0x20, 0x41, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x7b, 0x20, 0x69, 0x64, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6d, 0x65, 0x64, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x6d, 0x61, 0x78, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x69, 0x67, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x20, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x20, 0x7d}; + public global::StrawberryShake.DocumentHash Hash { get; } = new global::StrawberryShake.DocumentHash("md5Hash", "9186750720641b65c53e1048cf9b28ea"); 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 9ad0a0f..a7f49b3 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_AccountInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_AccountInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,14 +9,15 @@ 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.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) + public Player_AccountInfo_AccountInfoResponse(global::System.Int64 accountId, global::System.DateTimeOffset createdAt, global::System.String? nickname, global::System.Int64 maxFragsTankId, global::System.Int64 maxXpTankId, global::System.Double avgTier, global::System.DateTimeOffset lastBattleTime, 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::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo_ClanInfo? clanInfo, global::System.Collections.Generic.IReadOnlyList? tanks) { AccountId = accountId; CreatedAt = createdAt; - LastBattleTime = lastBattleTime; Nickname = nickname; MaxFragsTankId = maxFragsTankId; MaxXpTankId = maxXpTankId; + AvgTier = avgTier; + LastBattleTime = lastBattleTime; Battles = battles; CapturePoints = capturePoints; DamageDealt = damageDealt; @@ -40,7 +41,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl AvgXp = avgXp; DamageCoefficient = damageCoefficient; SurvivalRate = survivalRate; - AvgTier = avgTier; ClanInfo = clanInfo; Tanks = tanks; } @@ -55,11 +55,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.DateTimeOffset CreatedAt { get; } - /// - /// Last battle time - /// - public global::System.DateTimeOffset LastBattleTime { get; } - /// /// Player's nick /// @@ -75,6 +70,16 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Int64 MaxXpTankId { get; } + /// + /// Average tier + /// + public global::System.Double AvgTier { get; } + + /// + /// Last battle time + /// + public global::System.DateTimeOffset LastBattleTime { get; } + /// /// Battles count /// @@ -146,7 +151,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl public global::System.Int64 SurvivedBattles { get; } /// - /// Total count of survived and winned battles + /// Total count of survived and won battles /// public global::System.Int64 WinAndSurvived { get; } @@ -190,11 +195,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.Decimal SurvivalRate { get; } - /// - /// Average tier - /// - public global::System.Double AvgTier { get; } - /// /// Clan info /// @@ -222,7 +222,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl return false; } - 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); + return (AccountId == other.AccountId) && CreatedAt.Equals(other.CreatedAt) && ((Nickname is null && other.Nickname is null) || Nickname != null && Nickname.Equals(other.Nickname)) && MaxFragsTankId == other.MaxFragsTankId && MaxXpTankId == other.MaxXpTankId && AvgTier == other.AvgTier && LastBattleTime.Equals(other.LastBattleTime) && 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 && ((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) @@ -252,7 +252,6 @@ 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(); @@ -260,6 +259,8 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl hash ^= 397 * MaxFragsTankId.GetHashCode(); hash ^= 397 * MaxXpTankId.GetHashCode(); + hash ^= 397 * AvgTier.GetHashCode(); + hash ^= 397 * LastBattleTime.GetHashCode(); hash ^= 397 * Battles.GetHashCode(); hash ^= 397 * CapturePoints.GetHashCode(); hash ^= 397 * DamageDealt.GetHashCode(); @@ -283,7 +284,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl hash ^= 397 * AvgXp.GetHashCode(); hash ^= 397 * DamageCoefficient.GetHashCode(); hash ^= 397 * SurvivalRate.GetHashCode(); - hash ^= 397 * AvgTier.GetHashCode(); if (ClanInfo != null) { hash ^= 397 * ClanInfo.GetHashCode(); 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 dbee63f..5e2b305 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_Tanks_TankInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_Tanks_TankInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -9,12 +9,22 @@ 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.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) + public Player_AccountInfo_Tanks_TankInfoResponse(global::System.Int64 tankId, global::System.Int32 battleLifeTimeInSeconds, global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery markOfMastery, 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, global::System.DateTimeOffset lastBattleTime, 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) { TankId = tankId; BattleLifeTimeInSeconds = battleLifeTimeInSeconds; - LastBattleTime = lastBattleTime; MarkOfMastery = markOfMastery; + AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes; + Name = name; + TankNationId = tankNationId; + TankNation = tankNation; + Tier = tier; + TankTypeId = tankTypeId; + TankType = tankType; + IsPremium = isPremium; + PreviewImage = previewImage; + NormalImage = normalImage; + LastBattleTime = lastBattleTime; Battles = battles; CapturePoints = capturePoints; DamageDealt = damageDealt; @@ -38,16 +48,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl AvgXp = avgXp; DamageCoefficient = damageCoefficient; SurvivalRate = survivalRate; - AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes; - Name = name; - TankNationId = tankNationId; - TankNation = tankNation; - Tier = tier; - TankTypeId = tankTypeId; - TankType = tankType; - IsPremium = isPremium; - PreviewImage = previewImage; - NormalImage = normalImage; } /// @@ -60,131 +60,11 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// 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; } - - /// - /// Average tank's damage - /// - public global::System.Decimal AvgDamage { get; } - - /// - /// Average XP - /// - public global::System.Decimal AvgXp { 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. /// @@ -235,6 +115,126 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl /// public global::System.String? NormalImage { get; } + /// + /// Last battle time + /// + public global::System.DateTimeOffset LastBattleTime { 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 won 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; } + + /// + /// Player's average damage + /// + public global::System.Decimal AvgDamage { get; } + + /// + /// Player's average XP + /// + public global::System.Decimal AvgXp { get; } + + /// + /// Damage coefficient + /// + public global::System.Decimal DamageCoefficient { get; } + + /// + /// Rate of survival + /// + public global::System.Decimal SurvivalRate { get; } + public virtual global::System.Boolean Equals(Player_AccountInfo_Tanks_TankInfoResponse? other) { if (ReferenceEquals(null, other)) @@ -252,7 +252,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl return false; } - 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)); + return (TankId == other.TankId) && BattleLifeTimeInSeconds == other.BattleLifeTimeInSeconds && MarkOfMastery.Equals(other.MarkOfMastery) && 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)) && LastBattleTime.Equals(other.LastBattleTime) && 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; } public override global::System.Boolean Equals(global::System.Object? obj) @@ -282,31 +282,7 @@ 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) { @@ -345,6 +321,30 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl hash ^= 397 * NormalImage.GetHashCode(); } + hash ^= 397 * LastBattleTime.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(); return hash; } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/AccountInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/AccountInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs index 1b19a92..5efb998 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/AccountInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/AccountInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -5,17 +5,18 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State { ///Information about player [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] - public partial class AccountInfoResponseData + public partial class AccountInfoResponseData : IStatisticsData { - 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 !) + public AccountInfoResponseData(global::System.String __typename, global::System.Int64? accountId = default !, global::System.DateTimeOffset? createdAt = default !, global::System.String? nickname = default !, global::System.Int64? maxFragsTankId = default !, global::System.Int64? maxXpTankId = default !, global::System.Double? avgTier = default !, global::System.DateTimeOffset? lastBattleTime = 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::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; CreatedAt = createdAt; - LastBattleTime = lastBattleTime; Nickname = nickname; MaxFragsTankId = maxFragsTankId; MaxXpTankId = maxXpTankId; + AvgTier = avgTier; + LastBattleTime = lastBattleTime; Battles = battles; CapturePoints = capturePoints; DamageDealt = damageDealt; @@ -39,7 +40,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State AvgXp = avgXp; DamageCoefficient = damageCoefficient; SurvivalRate = survivalRate; - AvgTier = avgTier; ClanInfo = clanInfo; Tanks = tanks; } @@ -52,9 +52,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///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; } @@ -64,6 +61,12 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///Tank Id which created max experience per battle public global::System.Int64? MaxXpTankId { get; } + ///Average tier + public global::System.Double? AvgTier { get; } + + ///Last battle time + public global::System.DateTimeOffset? LastBattleTime { get; } + ///Battles count public global::System.Int64? Battles { get; } @@ -106,7 +109,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///Total count of survived battles public global::System.Int64? SurvivedBattles { get; } - ///Total count of survived and winned battles + ///Total count of survived and won battles public global::System.Int64? WinAndSurvived { get; } ///Total wins count @@ -133,13 +136,10 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///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; } + public global::System.Collections.Generic.IReadOnlyList? Tanks { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/IStatisticsData.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/IStatisticsData.WotBlitzStatisticsProClient.StrawberryShake.cs new file mode 100644 index 0000000..aef4596 --- /dev/null +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/IStatisticsData.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -0,0 +1,12 @@ +// +#nullable enable + +namespace WotBlitzStatisticsPro.Blazor.GraphQl.State +{ + ///Information about player + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] + public partial interface IStatisticsData + { + global::System.String __typename { get; } + } +} diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs index 1169885..82cd5d1 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerBuilder.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -84,7 +84,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State return (_resultDataFactory.Create(resultInfo), resultInfo); } - private global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountInfoResponseData DeserializeNonNullableIPlayer_AccountInfo(global::System.Text.Json.JsonElement? obj) + private global::WotBlitzStatisticsPro.Blazor.GraphQl.State.IStatisticsData DeserializeNonNullableIPlayer_AccountInfo(global::System.Text.Json.JsonElement? obj) { if (!obj.HasValue) { @@ -94,7 +94,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")), 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"))); + 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")), 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")), avgTier: DeserializeNonNullableDouble(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "avgTier")), lastBattleTime: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "lastBattleTime")), 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")), 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(); @@ -196,14 +196,14 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State return _dateTimeParser.Parse(obj.Value.GetString()!); } - private global::System.Collections.Generic.IReadOnlyList? DeserializeIPlayer_AccountInfo_TanksNonNullableArray(global::System.Text.Json.JsonElement? obj) + private global::System.Collections.Generic.IReadOnlyList? DeserializeIPlayer_AccountInfo_TanksNonNullableArray(global::System.Text.Json.JsonElement? obj) { if (!obj.HasValue) { return null; } - var tankInfoResponses = new global::System.Collections.Generic.List(); + var tankInfoResponses = new global::System.Collections.Generic.List(); foreach (global::System.Text.Json.JsonElement child in obj.Value.EnumerateArray()) { tankInfoResponses.Add(DeserializeNonNullableIPlayer_AccountInfo_Tanks(child)); @@ -212,7 +212,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State return tankInfoResponses; } - private global::WotBlitzStatisticsPro.Blazor.GraphQl.State.TankInfoResponseData DeserializeNonNullableIPlayer_AccountInfo_Tanks(global::System.Text.Json.JsonElement? obj) + private global::WotBlitzStatisticsPro.Blazor.GraphQl.State.IStatisticsData DeserializeNonNullableIPlayer_AccountInfo_Tanks(global::System.Text.Json.JsonElement? obj) { if (!obj.HasValue) { @@ -222,7 +222,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")), 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"))); + 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")), markOfMastery: DeserializeNonNullableMarkOfMastery(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "markOfMastery")), 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")), lastBattleTime: DeserializeNonNullableDateTimeOffset(global::StrawberryShake.Json.JsonElementExtensions.GetPropertyOrNull(obj, "lastBattleTime")), 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"))); } throw new global::System.NotSupportedException(); diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs index 3c3ba80..114afe7 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultFactory.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -30,12 +30,157 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State throw new global::System.ArgumentException("PlayerResultInfo expected."); } - private global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo MapNonNullableIPlayer_AccountInfo(global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountInfoResponseData data, global::StrawberryShake.IEntityStoreSnapshot snapshot) + private global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo MapNonNullableIPlayer_AccountInfo(global::WotBlitzStatisticsPro.Blazor.GraphQl.State.IStatisticsData data, global::StrawberryShake.IEntityStoreSnapshot snapshot) { - IPlayer_AccountInfo returnValue = default !; - if (data.__typename.Equals("AccountInfoResponse", global::System.StringComparison.Ordinal)) + IPlayer_AccountInfo? returnValue; + if (data is global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountInfoResponseData accountInfoResponse) { - 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)); + if (!accountInfoResponse.AccountId.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.CreatedAt.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.MaxFragsTankId.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.MaxXpTankId.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.AvgTier.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.LastBattleTime.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Battles.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.CapturePoints.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.DamageDealt.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.DamageReceived.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.DroppedCapturePoints.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Frags.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Frags8P.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Hits.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Losses.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.MaxFrags.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.MaxXp.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Shots.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Spotted.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.SurvivedBattles.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.WinAndSurvived.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Wins.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Xp.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.Wn7.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.WinRate.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.AvgDamage.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.AvgXp.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.DamageCoefficient.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!accountInfoResponse.SurvivalRate.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + returnValue = new global::WotBlitzStatisticsPro.Blazor.GraphQl.Player_AccountInfo_AccountInfoResponse(accountInfoResponse.AccountId!.Value, accountInfoResponse.CreatedAt!.Value, accountInfoResponse.Nickname, accountInfoResponse.MaxFragsTankId!.Value, accountInfoResponse.MaxXpTankId!.Value, accountInfoResponse.AvgTier!.Value, accountInfoResponse.LastBattleTime!.Value, accountInfoResponse.Battles!.Value, accountInfoResponse.CapturePoints!.Value, accountInfoResponse.DamageDealt!.Value, accountInfoResponse.DamageReceived!.Value, accountInfoResponse.DroppedCapturePoints!.Value, accountInfoResponse.Frags!.Value, accountInfoResponse.Frags8P!.Value, accountInfoResponse.Hits!.Value, accountInfoResponse.Losses!.Value, accountInfoResponse.MaxFrags!.Value, accountInfoResponse.MaxXp!.Value, accountInfoResponse.Shots!.Value, accountInfoResponse.Spotted!.Value, accountInfoResponse.SurvivedBattles!.Value, accountInfoResponse.WinAndSurvived!.Value, accountInfoResponse.Wins!.Value, accountInfoResponse.Xp!.Value, accountInfoResponse.Wn7!.Value, accountInfoResponse.WinRate!.Value, accountInfoResponse.AvgDamage!.Value, accountInfoResponse.AvgXp!.Value, accountInfoResponse.DamageCoefficient!.Value, accountInfoResponse.SurvivalRate!.Value, MapIPlayer_AccountInfo_ClanInfo(accountInfoResponse.ClanInfo, snapshot), MapIPlayer_AccountInfo_TanksNonNullableArray(accountInfoResponse.Tanks, snapshot)); } else { @@ -65,7 +210,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State return returnValue; } - private global::System.Collections.Generic.IReadOnlyList? MapIPlayer_AccountInfo_TanksNonNullableArray(global::System.Collections.Generic.IReadOnlyList? list, global::StrawberryShake.IEntityStoreSnapshot snapshot) + private global::System.Collections.Generic.IReadOnlyList? MapIPlayer_AccountInfo_TanksNonNullableArray(global::System.Collections.Generic.IReadOnlyList? list, global::StrawberryShake.IEntityStoreSnapshot snapshot) { if (list is null) { @@ -73,7 +218,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State } var tankInfoResponses = new global::System.Collections.Generic.List(); - foreach (global::WotBlitzStatisticsPro.Blazor.GraphQl.State.TankInfoResponseData child in list) + foreach (global::WotBlitzStatisticsPro.Blazor.GraphQl.State.IStatisticsData child in list) { tankInfoResponses.Add(MapNonNullableIPlayer_AccountInfo_Tanks(child, snapshot)); } @@ -81,12 +226,162 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State return tankInfoResponses; } - private global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo_Tanks MapNonNullableIPlayer_AccountInfo_Tanks(global::WotBlitzStatisticsPro.Blazor.GraphQl.State.TankInfoResponseData data, global::StrawberryShake.IEntityStoreSnapshot snapshot) + private global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo_Tanks MapNonNullableIPlayer_AccountInfo_Tanks(global::WotBlitzStatisticsPro.Blazor.GraphQl.State.IStatisticsData data, global::StrawberryShake.IEntityStoreSnapshot snapshot) { - IPlayer_AccountInfo_Tanks returnValue = default !; - if (data.__typename.Equals("TankInfoResponse", global::System.StringComparison.Ordinal)) + IPlayer_AccountInfo_Tanks? returnValue; + if (data is global::WotBlitzStatisticsPro.Blazor.GraphQl.State.TankInfoResponseData tankInfoResponse) { - 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); + if (!tankInfoResponse.TankId.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.BattleLifeTimeInSeconds.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.MarkOfMastery.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.AvgBattleLifeTimeInMinutes.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Tier.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.IsPremium.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.LastBattleTime.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Battles.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.CapturePoints.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.DamageDealt.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.DamageReceived.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.DroppedCapturePoints.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Frags.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Frags8P.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Hits.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Losses.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.MaxFrags.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.MaxXp.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Shots.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Spotted.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.SurvivedBattles.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.WinAndSurvived.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Wins.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Xp.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.Wn7.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.WinRate.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.AvgDamage.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.AvgXp.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.DamageCoefficient.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + if (!tankInfoResponse.SurvivalRate.HasValue) + { + throw new global::System.ArgumentNullException(); + } + + returnValue = new global::WotBlitzStatisticsPro.Blazor.GraphQl.Player_AccountInfo_Tanks_TankInfoResponse(tankInfoResponse.TankId!.Value, tankInfoResponse.BattleLifeTimeInSeconds!.Value, tankInfoResponse.MarkOfMastery!.Value, tankInfoResponse.AvgBattleLifeTimeInMinutes!.Value, tankInfoResponse.Name, tankInfoResponse.TankNationId, tankInfoResponse.TankNation, tankInfoResponse.Tier!.Value, tankInfoResponse.TankTypeId, tankInfoResponse.TankType, tankInfoResponse.IsPremium!.Value, tankInfoResponse.PreviewImage, tankInfoResponse.NormalImage, tankInfoResponse.LastBattleTime!.Value, tankInfoResponse.Battles!.Value, tankInfoResponse.CapturePoints!.Value, tankInfoResponse.DamageDealt!.Value, tankInfoResponse.DamageReceived!.Value, tankInfoResponse.DroppedCapturePoints!.Value, tankInfoResponse.Frags!.Value, tankInfoResponse.Frags8P!.Value, tankInfoResponse.Hits!.Value, tankInfoResponse.Losses!.Value, tankInfoResponse.MaxFrags!.Value, tankInfoResponse.MaxXp!.Value, tankInfoResponse.Shots!.Value, tankInfoResponse.Spotted!.Value, tankInfoResponse.SurvivedBattles!.Value, tankInfoResponse.WinAndSurvived!.Value, tankInfoResponse.Wins!.Value, tankInfoResponse.Xp!.Value, tankInfoResponse.Wn7!.Value, tankInfoResponse.WinRate!.Value, tankInfoResponse.AvgDamage!.Value, tankInfoResponse.AvgXp!.Value, tankInfoResponse.DamageCoefficient!.Value, tankInfoResponse.SurvivalRate!.Value); } else { diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultInfo.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultInfo.WotBlitzStatisticsProClient.StrawberryShake.cs index bcb822f..7f8f14d 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultInfo.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/PlayerResultInfo.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 PlayerResultInfo(global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountInfoResponseData accountInfo, global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountAchievementsResponseData accountMedals, global::System.Collections.Generic.IReadOnlyCollection entityIds, global::System.UInt64 version) + public PlayerResultInfo(global::WotBlitzStatisticsPro.Blazor.GraphQl.State.IStatisticsData accountInfo, global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountAchievementsResponseData accountMedals, global::System.Collections.Generic.IReadOnlyCollection entityIds, global::System.UInt64 version) { AccountInfo = accountInfo; AccountMedals = accountMedals; @@ -19,7 +19,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State /// /// Gathers all account information /// - public global::WotBlitzStatisticsPro.Blazor.GraphQl.State.AccountInfoResponseData AccountInfo { get; } + public global::WotBlitzStatisticsPro.Blazor.GraphQl.State.IStatisticsData AccountInfo { get; } /// /// Returns information about player's achievements diff --git a/WotBlitzStatisticsPro.Blazor/Generated/State/TankInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs b/WotBlitzStatisticsPro.Blazor/Generated/State/TankInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs index d06761e..40fb5e1 100644 --- a/WotBlitzStatisticsPro.Blazor/Generated/State/TankInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs +++ b/WotBlitzStatisticsPro.Blazor/Generated/State/TankInfoResponseData.WotBlitzStatisticsProClient.StrawberryShake.cs @@ -5,15 +5,25 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State { ///Information about player's tank [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] - public partial class TankInfoResponseData + public partial class TankInfoResponseData : IStatisticsData { - 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 !) + public TankInfoResponseData(global::System.String __typename, global::System.Int64? tankId = default !, global::System.Int32? battleLifeTimeInSeconds = default !, global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery? markOfMastery = 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 !, global::System.DateTimeOffset? lastBattleTime = 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 !) { this.__typename = __typename ?? throw new global::System.ArgumentNullException(nameof(__typename)); TankId = tankId; BattleLifeTimeInSeconds = battleLifeTimeInSeconds; - LastBattleTime = lastBattleTime; MarkOfMastery = markOfMastery; + AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes; + Name = name; + TankNationId = tankNationId; + TankNation = tankNation; + Tier = tier; + TankTypeId = tankTypeId; + TankType = tankType; + IsPremium = isPremium; + PreviewImage = previewImage; + NormalImage = normalImage; + LastBattleTime = lastBattleTime; Battles = battles; CapturePoints = capturePoints; DamageDealt = damageDealt; @@ -37,16 +47,6 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State AvgXp = avgXp; 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; } @@ -57,81 +57,9 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///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; } - - ///Average tank's damage - public global::System.Decimal? AvgDamage { get; } - - ///Average XP - public global::System.Decimal? AvgXp { 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; } @@ -161,5 +89,77 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl.State ///Vehicle normal image public global::System.String? NormalImage { get; } + + ///Last battle time + public global::System.DateTimeOffset? LastBattleTime { 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 won 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; } + + ///Player's average damage + public global::System.Decimal? AvgDamage { get; } + + ///Player's average XP + public global::System.Decimal? AvgXp { get; } + + ///Damage coefficient + public global::System.Decimal? DamageCoefficient { get; } + + ///Rate of survival + public global::System.Decimal? SurvivalRate { get; } } } diff --git a/WotBlitzStatisticsPro.Blazor/Pages/FindClanListItem.razor b/WotBlitzStatisticsPro.Blazor/Pages/FindClanListItem.razor index f380adc..89b85a9 100644 --- a/WotBlitzStatisticsPro.Blazor/Pages/FindClanListItem.razor +++ b/WotBlitzStatisticsPro.Blazor/Pages/FindClanListItem.razor @@ -22,6 +22,6 @@ @code { [Parameter] - public IFindClans_Clans Clan { get; set; } + public IClanShortInfo Clan { get; set; } } diff --git a/WotBlitzStatisticsPro.Blazor/Pages/FindPlayerListItem.razor b/WotBlitzStatisticsPro.Blazor/Pages/FindPlayerListItem.razor index d844a9f..00d1a39 100644 --- a/WotBlitzStatisticsPro.Blazor/Pages/FindPlayerListItem.razor +++ b/WotBlitzStatisticsPro.Blazor/Pages/FindPlayerListItem.razor @@ -22,7 +22,7 @@ @code { [Parameter] - public IFindPlayers_Players Player { get; set; } + public IPlayerShortInfo Player { get; set; } } diff --git a/WotBlitzStatisticsPro.Blazor/Pages/PlayerInfoLayoutBase.cs b/WotBlitzStatisticsPro.Blazor/Pages/PlayerInfoLayoutBase.cs index b0195ef..14ac072 100644 --- a/WotBlitzStatisticsPro.Blazor/Pages/PlayerInfoLayoutBase.cs +++ b/WotBlitzStatisticsPro.Blazor/Pages/PlayerInfoLayoutBase.cs @@ -19,9 +19,9 @@ namespace WotBlitzStatisticsPro.Blazor.Pages public RealmType CurrentRealmType { get; set; } = RealmType.Eu; - public IPlayer_AccountInfo AccountInfo { get; set; } + public IAccount AccountInfo { get; set; } - public IReadOnlyList AchievementsBySection { get; set; } + public IReadOnlyList AchievementsBySection { get; set; } protected override async Task OnInitializedAsync() { diff --git a/WotBlitzStatisticsPro.Blazor/Pages/PlayerInfoOverview.razor b/WotBlitzStatisticsPro.Blazor/Pages/PlayerInfoOverview.razor index 139935a..a1bad7d 100644 --- a/WotBlitzStatisticsPro.Blazor/Pages/PlayerInfoOverview.razor +++ b/WotBlitzStatisticsPro.Blazor/Pages/PlayerInfoOverview.razor @@ -2,5 +2,5 @@ @code { [Parameter] - public IPlayer_AccountInfo AccountInfo { get; set; } + public IAccount AccountInfo { get; set; } } diff --git a/WotBlitzStatisticsPro.Blazor/Pages/SearchDialog.razor b/WotBlitzStatisticsPro.Blazor/Pages/SearchDialog.razor index f4ea583..6a90a62 100644 --- a/WotBlitzStatisticsPro.Blazor/Pages/SearchDialog.razor +++ b/WotBlitzStatisticsPro.Blazor/Pages/SearchDialog.razor @@ -27,7 +27,7 @@ Style="height: 330px; width: 100%; margin-top: 10px;" Visible="@(!ComponentBusy)"> } @@ -39,7 +39,7 @@ Style="height: 330px; width: 100%; margin-top: 10px;" Visible="@(!ComponentBusy)"> } diff --git a/WotBlitzStatisticsPro.Blazor/Pages/SearchDialogTypeBase.cs b/WotBlitzStatisticsPro.Blazor/Pages/SearchDialogTypeBase.cs index 3d8b8ac..068dd20 100644 --- a/WotBlitzStatisticsPro.Blazor/Pages/SearchDialogTypeBase.cs +++ b/WotBlitzStatisticsPro.Blazor/Pages/SearchDialogTypeBase.cs @@ -34,8 +34,8 @@ namespace WotBlitzStatisticsPro.Blazor.Pages public List Realms { get; set; } - public List PlayersList { get; set; } = new(); - public List ClansList { get; set; } = new(); + public List PlayersList { get; set; } = new(); + public List ClansList { get; set; } = new(); public RealmType CurrentRealmType { get; set; } = RealmType.Eu; @@ -121,7 +121,7 @@ namespace WotBlitzStatisticsPro.Blazor.Pages await GraphQlBackendService.FindPlayers(searchString, CurrentRealmType); if (accounts != null) { - PlayersList = new List(accounts); + PlayersList = new List(accounts); } } @@ -132,7 +132,7 @@ namespace WotBlitzStatisticsPro.Blazor.Pages await GraphQlBackendService.FindClans(searchString, CurrentRealmType); if (clans != null) { - ClansList = new List(clans); + ClansList = new List(clans); } } } diff --git a/WotBlitzStatisticsPro.Blazor/Program.cs b/WotBlitzStatisticsPro.Blazor/Program.cs index d2c7563..0e77ade 100644 --- a/WotBlitzStatisticsPro.Blazor/Program.cs +++ b/WotBlitzStatisticsPro.Blazor/Program.cs @@ -43,11 +43,11 @@ namespace WotBlitzStatisticsPro.Blazor //var useMock = Environment.GetEnvironmentVariable("USE_GRAPH_QL_MOCK"); //if (useMock != null && useMock == "true") //{ - //builder.Services.AddTransient(); + builder.Services.AddTransient(); //} //else //{ - builder.Services.AddTransient(); + //builder.Services.AddTransient(); //} var host = builder.Build(); diff --git a/WotBlitzStatisticsPro.Blazor/Services/GraphQlBackendService.cs b/WotBlitzStatisticsPro.Blazor/Services/GraphQlBackendService.cs index 15ecce4..df9b654 100644 --- a/WotBlitzStatisticsPro.Blazor/Services/GraphQlBackendService.cs +++ b/WotBlitzStatisticsPro.Blazor/Services/GraphQlBackendService.cs @@ -20,7 +20,7 @@ namespace WotBlitzStatisticsPro.Blazor.Services _notificationsService = notificationsService; } - public async Task?> FindPlayers(string accountNick, RealmType realmType) + public async Task?> FindPlayers(string accountNick, RealmType realmType) { var accounts = await _client.FindPlayers.ExecuteAsync(accountNick, realmType, GetLanguage()); @@ -29,7 +29,7 @@ namespace WotBlitzStatisticsPro.Blazor.Services return accounts.Data?.Players; } - public async Task?> FindClans(string clanNameOrTag, RealmType realmType) + public async Task?> FindClans(string clanNameOrTag, RealmType realmType) { var clans = await _client.FindClans.ExecuteAsync(clanNameOrTag, realmType, GetLanguage()); @@ -38,7 +38,7 @@ namespace WotBlitzStatisticsPro.Blazor.Services return clans.Data?.Clans; } - public async Task<(IPlayer_AccountInfo accountInfo, IReadOnlyList achievementsBySection)> GetPlayerInfo(long accountId, RealmType realmType) + public async Task<(IAccount accountInfo, IReadOnlyList achievementsBySection)> GetPlayerInfo(long accountId, RealmType realmType) { var playerInfo = await _client.Player.ExecuteAsync(accountId, realmType, GetLanguage()); CheckErrors(playerInfo.Errors); diff --git a/WotBlitzStatisticsPro.Blazor/Services/IGraphQlBackendService.cs b/WotBlitzStatisticsPro.Blazor/Services/IGraphQlBackendService.cs index 7eac108..fa932fc 100644 --- a/WotBlitzStatisticsPro.Blazor/Services/IGraphQlBackendService.cs +++ b/WotBlitzStatisticsPro.Blazor/Services/IGraphQlBackendService.cs @@ -6,15 +6,15 @@ namespace WotBlitzStatisticsPro.Blazor.Services { public interface IGraphQlBackendService { - Task?> FindPlayers( + Task?> FindPlayers( string accountNick, RealmType realmType); - Task?> FindClans( + Task?> FindClans( string clanNameOrTag, RealmType realmType); - Task<(IPlayer_AccountInfo accountInfo, IReadOnlyList achievementsBySection)> GetPlayerInfo( + Task<(IAccount accountInfo, IReadOnlyList achievementsBySection)> GetPlayerInfo( long accountId, RealmType realmType); } diff --git a/WotBlitzStatisticsPro.Blazor/Services/Mock/GraphQlBackendMockService.cs b/WotBlitzStatisticsPro.Blazor/Services/Mock/GraphQlBackendMockService.cs index d079e46..427926a 100644 --- a/WotBlitzStatisticsPro.Blazor/Services/Mock/GraphQlBackendMockService.cs +++ b/WotBlitzStatisticsPro.Blazor/Services/Mock/GraphQlBackendMockService.cs @@ -22,7 +22,7 @@ namespace WotBlitzStatisticsPro.Blazor.Services.Mock _needToWait = needToWait; } - public async Task?> FindPlayers(string accountNick, RealmType realmType) + public async Task?> FindPlayers(string accountNick, RealmType realmType) { var result = new List(); @@ -48,7 +48,7 @@ namespace WotBlitzStatisticsPro.Blazor.Services.Mock return result; } - public async Task?> FindClans(string clanNameOrTag, RealmType realmType) + public async Task?> FindClans(string clanNameOrTag, RealmType realmType) { var result = new List(); @@ -74,7 +74,7 @@ namespace WotBlitzStatisticsPro.Blazor.Services.Mock return result; } - public async Task<(IPlayer_AccountInfo accountInfo, IReadOnlyList achievementsBySection)> GetPlayerInfo(long accountId, RealmType realmType) + public async Task<(IAccount accountInfo, IReadOnlyList achievementsBySection)> GetPlayerInfo(long accountId, RealmType realmType) { var faker = new Faker(FakerLanguage(GetLanguage())); var tanksCount = faker.Random.Number(10, 280); @@ -113,8 +113,18 @@ namespace WotBlitzStatisticsPro.Blazor.Services.Mock tanks.Add(new Player_AccountInfo_Tanks_TankInfoResponse( faker.Random.Long(100000, 999999), faker.Random.Number(500), - faker.Date.Past(), faker.PickRandom(), + faker.Random.Decimal(0M, 7M), + faker.Name.LastName(), + nation.nation, + nation.nationName, + faker.Random.Number(10), + vehicleType.vehicleType, + vehicleType.vehicleTypeName, + faker.Random.Bool(), + GetRandomPreviewImage(faker), + GetRandomLargeImage(faker), + faker.Date.Past(), faker.Random.Long(1, 9999), faker.Random.Long(1, 9999), faker.Random.Long(1, 9999), @@ -137,17 +147,7 @@ namespace WotBlitzStatisticsPro.Blazor.Services.Mock faker.Random.Decimal(300M, 4000M), faker.Random.Decimal(100M, 2000M), faker.Random.Decimal(0M, 3M), - faker.Random.Decimal(5M, 95M), - faker.Random.Decimal(0M, 7M), - faker.Name.LastName(), - nation.nation, - nation.nationName, - faker.Random.Number(10), - vehicleType.vehicleType, - vehicleType.vehicleTypeName, - faker.Random.Bool(), - GetRandomPreviewImage(faker), - GetRandomLargeImage(faker) + faker.Random.Decimal(5M, 95M) )); } @@ -159,10 +159,11 @@ namespace WotBlitzStatisticsPro.Blazor.Services.Mock var player = new Player_AccountInfo_AccountInfoResponse( accountId, faker.Date.Past(), - faker.Date.Past(), faker.Internet.UserName(), - tanks[faker.Random.Number(1, tanks.Count-1)].TankId, - tanks[faker.Random.Number(1, tanks.Count-1)].TankId, + tanks[faker.Random.Number(1, tanks.Count - 1)].TankId, + tanks[faker.Random.Number(1, tanks.Count - 1)].TankId, + faker.Random.Double(2D, 9D), + faker.Date.Past(), faker.Random.Long(1, 100000), faker.Random.Long(1, 9999), faker.Random.Long(1, 9999), @@ -186,7 +187,6 @@ namespace WotBlitzStatisticsPro.Blazor.Services.Mock faker.Random.Decimal(100M, 2000M), faker.Random.Decimal(0M, 3M), faker.Random.Decimal(5M, 95M), - faker.Random.Double(2D, 9D), clanInfo, tanks ); diff --git a/WotBlitzStatisticsPro.Blazor/graphql/FindClans.graphql b/WotBlitzStatisticsPro.Blazor/graphql/FindClans.graphql index 713debb..c9e93fe 100644 --- a/WotBlitzStatisticsPro.Blazor/graphql/FindClans.graphql +++ b/WotBlitzStatisticsPro.Blazor/graphql/FindClans.graphql @@ -6,10 +6,14 @@ query findClans ( searchString: $searchString, realmType: $realmType, language: $language) { - clanId - createdAt - membersCount - name - tag + ... clanShortInfo } +} + +fragment clanShortInfo on ClanSearchResponseItem { + clanId + createdAt + membersCount + name + tag } \ No newline at end of file diff --git a/WotBlitzStatisticsPro.Blazor/graphql/FindPlayers.graphql b/WotBlitzStatisticsPro.Blazor/graphql/FindPlayers.graphql index 5249a4a..c449c59 100644 --- a/WotBlitzStatisticsPro.Blazor/graphql/FindPlayers.graphql +++ b/WotBlitzStatisticsPro.Blazor/graphql/FindPlayers.graphql @@ -6,11 +6,15 @@ accountNick: $accountNick, realmType: $realmType, language: $language) { - accountId - nickname - clanTag - lastBattle - battlesCount - winRate + ... playerShortInfo } +} + +fragment playerShortInfo on AccountsSearchResponseItem { + accountId + nickname + clanTag + lastBattle + battlesCount + winRate } \ No newline at end of file diff --git a/WotBlitzStatisticsPro.Blazor/graphql/PlayerInfo.graphql b/WotBlitzStatisticsPro.Blazor/graphql/PlayerInfo.graphql index 2abcd57..ffd8fbc 100644 --- a/WotBlitzStatisticsPro.Blazor/graphql/PlayerInfo.graphql +++ b/WotBlitzStatisticsPro.Blazor/graphql/PlayerInfo.graphql @@ -1,122 +1,127 @@ -query player( +query player +( $accountId: Long!, $realmType: RealmType!, - $requestLanguage: RequestLanguage! ) { + $requestLanguage: RequestLanguage!) + + { accountInfo( accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage) { - accountId - 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 - damageCoefficient - survivalRate - avgTier - clanInfo { - clanId - joinedAt - role - roleLocalized - name - createdAt - creatorId - creatorName - description - descriptionHtml - leaderId - leaderName - membersCount - motto - tag - updatedAt - } - tanks { - tankId - battleLifeTimeInSeconds - lastBattleTime - markOfMastery - battles - capturePoints - damageDealt - damageReceived - droppedCapturePoints - frags - frags8P - hits - losses - maxFrags - maxXp - shots - spotted - survivedBattles - winAndSurvived - wins - xp - wn7 - winRate - avgDamage - avgXp - damageCoefficient - survivalRate - avgBattleLifeTimeInMinutes - name - tankNationId - tankNation - tier - tankTypeId - tankType - isPremium - previewImage - normalImage - } + ...account } + accountMedals( accountId: $accountId, realmType: $realmType, requestLanguage: $requestLanguage - ) { - accountId - sections { - sectionId - order - name - medals { - id - name - medalType - condition - description - achievementValue - maxSeriesValue - image - imageBig - order - sectionId - } - } + ) { + accountId + sections { + ... section + } + } +} + +fragment statistics on Statistics { + lastBattleTime + battles + capturePoints + damageDealt + damageReceived + droppedCapturePoints + frags + frags8P + hits + losses + maxFrags + maxXp + shots + spotted + survivedBattles + winAndSurvived + wins + xp + wn7 + winRate + avgDamage + avgXp + damageCoefficient + survivalRate +} + +fragment clan on ClanInfoResponse { + clanId + joinedAt + role + roleLocalized + name + createdAt + creatorId + creatorName + description + descriptionHtml + leaderId + leaderName + membersCount + motto + tag + updatedAt +} + +fragment tank on TankInfoResponse { + tankId + battleLifeTimeInSeconds + markOfMastery + avgBattleLifeTimeInMinutes + name + tankNationId + tankNation + tier + tankTypeId + tankType + isPremium + previewImage + normalImage + ... statistics +} + +fragment account on AccountInfoResponse { + accountId + createdAt + nickname + maxFragsTankId + maxXpTankId + avgTier + ... statistics + clanInfo { + ...clan + } + tanks { + ...tank + } +} + +fragment medal on Achievement { + id + name + medalType + condition + description + achievementValue + maxSeriesValue + image + imageBig + order + sectionId +} + +fragment section on AchievementSection { + sectionId + order + name + medals { + ...medal } } \ No newline at end of file diff --git a/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql b/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql index 596db15..7ad93a5 100644 --- a/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql +++ b/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql @@ -66,17 +66,27 @@ enum RequestLanguage { } "Information about player" -type AccountInfoResponse { +type AccountInfoResponse implements Statistics { "Clan info" clanInfo: ClanInfoResponse "Player account identifier" accountId: Long! "Account creation date" createdAt: DateTime! - "Last battle time" - lastBattleTime: DateTime! "Player's nick" nickname: String + "Tank id, which kills max frags per battle" + maxFragsTankId: Long! + "Tank Id which created max experience per battle" + maxXpTankId: Long! + "Average tier" + avgTier: Float! + "All player's tanks" + tanks: [TankInfoResponse!] + "Account Region and request language" + regionAndLanguage: RealmAndLanguage! + "Last battle time" + lastBattleTime: DateTime! "Battles count" battles: Long! "Capture points" @@ -97,26 +107,102 @@ type AccountInfoResponse { losses: Long! "Max frags per battle" maxFrags: Long! - "Tank id, which kills max frags per battle" - maxFragsTankId: Long! "Max experience per battle" maxXp: Long! - "Tank Id which created max experience per battle" - maxXpTankId: Long! "Total shots count" shots: Long! "Total count of spotted vehicles" spotted: Long! "Total count of survived battles" survivedBattles: Long! - "Total count of survived and winned battles" + "Total count of survived and won battles" + winAndSurvived: Long! + "Total wins count" + wins: Long! + "Total amount of experience" + xp: Long! + "Wn7 coefficient" + wn7: Float! + "Player's win rate" + winRate: Decimal! + "Player's average damage" + avgDamage: Decimal! + "Player's average XP" + avgXp: Decimal! + "Damage coefficient" + damageCoefficient: Decimal! + "Rate of survival" + survivalRate: Decimal! +} + +"Information about player's tank" +type TankInfoResponse implements Statistics { + "Player account identifier" + accountId: Long! + "Tank identifier" + tankId: Long! + "Information is tank in garage or not. Information is not provided without Auth token" + inGarage: Boolean + "Mark of Mastery" + markOfMastery: MarkOfMastery! + "Total time in battle until tank killed" + battleLifeTimeInSeconds: Int! + "Average life time in battle until tank is killed." + avgBattleLifeTimeInMinutes: Decimal! + "Tank name" + name: String + "Tank nation dictionary identifier" + tankNationId: String + "Localized tank nation name" + tankNation: String + "Tank tier" + tier: Int! + "Tank type dictionary identifier" + tankTypeId: String + "Localized tank type name" + tankType: String + "Is it premium tank or not" + isPremium: Boolean! + "Vehicle preview image" + previewImage: String + "Vehicle normal image" + normalImage: String + "Last battle time" + lastBattleTime: DateTime! + "Battles count" + battles: Long! + "Capture points" + capturePoints: Long! + "Total damage amount" + damageDealt: Long! + "Total amount of received damage" + damageReceived: Long! + "Dropped capture points" + droppedCapturePoints: Long! + "Total amount of frags" + frags: Long! + "Total amount of fras grater ten 8 lvl" + frags8P: Long! + "Total amount of hits" + hits: Long! + "Total amount of losses" + losses: Long! + "Max frags per battle" + maxFrags: Long! + "Max experience per battle" + maxXp: Long! + "Total shots count" + shots: Long! + "Total count of spotted vehicles" + spotted: Long! + "Total count of survived battles" + survivedBattles: Long! + "Total count of survived and won battles" winAndSurvived: Long! "Total wins count" wins: Long! "Total amount of experience" xp: Long! - "Average tier" - avgTier: Float! "Wn7 coefficient" wn7: Float! "Player's win rate" @@ -129,10 +215,6 @@ type AccountInfoResponse { damageCoefficient: Decimal! "Rate of survival" survivalRate: Decimal! - "All player's tanks" - tanks: [TankInfoResponse!] - "Account Region and request language" - regionAndLanguage: RealmAndLanguage! } "Account search result item" @@ -151,6 +233,58 @@ type AccountsSearchResponseItem { lastBattle: DateTime! } +"Represents game's statistics" +interface Statistics { + "Last battle time" + lastBattleTime: DateTime! + "Battles count" + battles: Long! + "Capture points" + capturePoints: Long! + "Total damage amount" + damageDealt: Long! + "Total amount of received damage" + damageReceived: Long! + "Dropped capture points" + droppedCapturePoints: Long! + "Total amount of frags" + frags: Long! + "Total amount of frags grater ten 8 lvl" + frags8P: Long! + "Total amount of hits" + hits: Long! + "Total amount of losses" + losses: Long! + "Max frags per battle" + maxFrags: Long! + "Max experience per battle" + maxXp: Long! + "Total shots count" + shots: Long! + "Total count of spotted vehicles" + spotted: Long! + "Total count of survived battles" + survivedBattles: Long! + "Total count of survived and won battles" + winAndSurvived: Long! + "Total wins count" + wins: Long! + "Total amount of experience" + xp: Long! + "Wn7 coefficient" + wn7: Float! + "Player's win rate" + winRate: Decimal! + "Player's average damage" + avgDamage: Decimal! + "Player's average XP" + avgXp: Decimal! + "Damage coefficient" + damageCoefficient: Decimal! + "Rate of survival" + survivalRate: Decimal! +} + enum ApplyPolicy { BEFORE_RESOLVER AFTER_RESOLVER @@ -202,97 +336,15 @@ scalar Long "The `DateTime` scalar represents an ISO-8601 compliant date time type." scalar DateTime -"The built-in `Decimal` scalar type." -scalar Decimal - -"Information about player's tank" -type TankInfoResponse { - "Player account identifier" - accountId: Long! - "Tank identifier" - tankId: Long! - "Total time in battle until tank killed" - battleLifeTimeInSeconds: Int! - "Last battle" - lastBattleTime: DateTime! - "Information is tank in garage or not. Information is not provided without Auth token" - inGarage: Boolean - "Mark of Mastery" - markOfMastery: MarkOfMastery! - "Battles count" - battles: Long! - "Base capture points" - capturePoints: Long! - "Damage dealt" - damageDealt: Long! - "Damage received" - damageReceived: Long! - "Base dropped capture points" - droppedCapturePoints: Long! - "Frags count" - frags: Long! - "Frags count after 8 tier" - frags8P: Long! - "Hits count" - hits: Long! - "Losses count" - losses: Long! - "Max frags per battle" - maxFrags: Long! - "Max XP per battle" - maxXp: Long! - "Shots count" - shots: Long! - "Spotted vehicles count" - spotted: Long! - "Amount of survived battles" - survivedBattles: Long! - "Amount of survived and wined battles" - winAndSurvived: Long! - "Wins count" - wins: Long! - "Total experience" - xp: Long! - "Wn7 coefficient" - wn7: Float! - "Average life time in battle until tank is killed." - avgBattleLifeTimeInMinutes: Decimal! - "Tank's win rate" - winRate: Decimal! - "Average tank's damage" - avgDamage: Decimal! - "Average XP" - avgXp: Decimal! - "Damage coefficient" - damageCoefficient: Decimal! - "Rate of survival" - survivalRate: Decimal! - "Tank name" - name: String - "Tank nation dictionary identifier" - tankNationId: String - "Localized tank nation name" - tankNation: String - "Tank tier" - tier: Int! - "Tank type dictionary identifier" - tankTypeId: String - "Localized tank type name" - tankType: String - "Is it premium tank or not" - isPremium: Boolean! - "Vehicle preview image" - previewImage: String - "Vehicle normal image" - normalImage: String -} - "Represents pair of realm type a nd requested language" type RealmAndLanguage { realm: RealmType! language: RequestLanguage! } +"The built-in `Decimal` scalar type." +scalar Decimal + "Request for update dictionaries mutation" input UpdateDictionariesRequestInput { "Determines what dictionaries should be updated. Usage: StaticDictionaries | Achievements | Vehicles"