chore: new client methadata

This commit is contained in:
Mikhail Shabanov committed 2021-05-28 16:56:12 +02:00
1 parent 9ee39cd8d4
commit 6ed4738197
25 files changed
+1695 -189

No files matched your search

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