// #nullable enable namespace WotBlitzStatisticsPro.Blazor.GraphQl { /// /// Information about player's tank /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "12.12.1.0")] public partial class Player_AccountInfo_Tanks_TankInfoResponse : global::System.IEquatable, IPlayer_AccountInfo_Tanks_TankInfoResponse { public Player_AccountInfo_Tanks_TankInfoResponse(global::System.Int64 tankId, global::System.Int32 battleLifeTimeInSeconds, global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery markOfMastery, global::System.Decimal avgBattleLifeTimeInMinutes, global::System.String? name, global::System.String? tankNationId, global::System.String? tankNation, global::System.Int32 tier, global::System.String? tankTypeId, global::System.String? tankType, global::System.Boolean isPremium, global::System.String? previewImage, global::System.String? normalImage, global::System.DateTimeOffset lastBattleTime, global::System.Int64 battles, global::System.Int64 capturePoints, global::System.Int64 damageDealt, global::System.Int64 damageReceived, global::System.Int64 droppedCapturePoints, global::System.Int64 frags, global::System.Int64 frags8P, global::System.Int64 hits, global::System.Int64 losses, global::System.Int64 maxFrags, global::System.Int64 maxXp, global::System.Int64 shots, global::System.Int64 spotted, global::System.Int64 survivedBattles, global::System.Int64 winAndSurvived, global::System.Int64 wins, global::System.Int64 xp, global::System.Double wn7, global::System.Decimal winRate, global::System.Decimal avgDamage, global::System.Decimal avgXp, global::System.Decimal damageCoefficient, global::System.Decimal survivalRate) { TankId = tankId; BattleLifeTimeInSeconds = battleLifeTimeInSeconds; MarkOfMastery = markOfMastery; AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes; Name = name; TankNationId = tankNationId; TankNation = tankNation; Tier = tier; TankTypeId = tankTypeId; TankType = tankType; IsPremium = isPremium; PreviewImage = previewImage; NormalImage = normalImage; LastBattleTime = lastBattleTime; Battles = battles; CapturePoints = capturePoints; DamageDealt = damageDealt; 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; DamageCoefficient = damageCoefficient; SurvivalRate = survivalRate; } /// /// Tank identifier /// public global::System.Int64 TankId { get; } /// /// Total time in battle until tank killed /// public global::System.Int32 BattleLifeTimeInSeconds { get; } /// /// Mark of Mastery /// public global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery MarkOfMastery { get; } /// /// Average life time in battle until tank is killed. /// public global::System.Decimal AvgBattleLifeTimeInMinutes { get; } /// /// Tank name /// public global::System.String? Name { get; } /// /// Tank nation dictionary identifier /// public global::System.String? TankNationId { get; } /// /// Localized tank nation name /// public global::System.String? TankNation { get; } /// /// Tank tier /// public global::System.Int32 Tier { get; } /// /// Tank type dictionary identifier /// public global::System.String? TankTypeId { get; } /// /// Localized tank type name /// public global::System.String? TankType { get; } /// /// Is it premium tank or not /// public global::System.Boolean IsPremium { get; } /// /// Vehicle preview image /// public global::System.String? PreviewImage { get; } /// /// Vehicle normal image /// public global::System.String? NormalImage { get; } /// /// Last battle time /// public global::System.DateTimeOffset LastBattleTime { get; } /// /// Battles count /// public global::System.Int64 Battles { get; } /// /// Capture points /// public global::System.Int64 CapturePoints { get; } /// /// Total damage amount /// public global::System.Int64 DamageDealt { get; } /// /// Total amount of received damage /// public global::System.Int64 DamageReceived { get; } /// /// Dropped capture points /// public global::System.Int64 DroppedCapturePoints { get; } /// /// Total amount of frags /// public global::System.Int64 Frags { get; } /// /// Total amount of fras grater ten 8 lvl /// public global::System.Int64 Frags8P { get; } /// /// Total amount of hits /// public global::System.Int64 Hits { get; } /// /// Total amount of losses /// public global::System.Int64 Losses { get; } /// /// Max frags per battle /// public global::System.Int64 MaxFrags { get; } /// /// Max experience per battle /// public global::System.Int64 MaxXp { get; } /// /// Total shots count /// public global::System.Int64 Shots { get; } /// /// Total count of spotted vehicles /// public global::System.Int64 Spotted { get; } /// /// Total count of survived battles /// public global::System.Int64 SurvivedBattles { get; } /// /// Total count of survived and won battles /// public global::System.Int64 WinAndSurvived { get; } /// /// Total wins count /// public global::System.Int64 Wins { get; } /// /// Total amount of experience /// public global::System.Int64 Xp { get; } /// /// Wn7 coefficient /// public global::System.Double Wn7 { get; } /// /// Player's win rate /// public global::System.Decimal WinRate { get; } /// /// Player's average damage /// public global::System.Decimal AvgDamage { get; } /// /// Player's average XP /// public global::System.Decimal AvgXp { get; } /// /// Damage coefficient /// public global::System.Decimal DamageCoefficient { get; } /// /// Rate of survival /// public global::System.Decimal SurvivalRate { get; } public virtual global::System.Boolean Equals(Player_AccountInfo_Tanks_TankInfoResponse? other) { if (ReferenceEquals(null, other)) { return false; } if (ReferenceEquals(this, other)) { return true; } if (other.GetType() != GetType()) { return false; } return (TankId == other.TankId) && BattleLifeTimeInSeconds == other.BattleLifeTimeInSeconds && MarkOfMastery.Equals(other.MarkOfMastery) && AvgBattleLifeTimeInMinutes == other.AvgBattleLifeTimeInMinutes && ((Name is null && other.Name is null) || Name != null && Name.Equals(other.Name)) && ((TankNationId is null && other.TankNationId is null) || TankNationId != null && TankNationId.Equals(other.TankNationId)) && ((TankNation is null && other.TankNation is null) || TankNation != null && TankNation.Equals(other.TankNation)) && Tier == other.Tier && ((TankTypeId is null && other.TankTypeId is null) || TankTypeId != null && TankTypeId.Equals(other.TankTypeId)) && ((TankType is null && other.TankType is null) || TankType != null && TankType.Equals(other.TankType)) && IsPremium == other.IsPremium && ((PreviewImage is null && other.PreviewImage is null) || PreviewImage != null && PreviewImage.Equals(other.PreviewImage)) && ((NormalImage is null && other.NormalImage is null) || NormalImage != null && NormalImage.Equals(other.NormalImage)) && LastBattleTime.Equals(other.LastBattleTime) && Battles == other.Battles && CapturePoints == other.CapturePoints && DamageDealt == other.DamageDealt && DamageReceived == other.DamageReceived && DroppedCapturePoints == other.DroppedCapturePoints && Frags == other.Frags && Frags8P == other.Frags8P && Hits == other.Hits && Losses == other.Losses && MaxFrags == other.MaxFrags && MaxXp == other.MaxXp && Shots == other.Shots && Spotted == other.Spotted && SurvivedBattles == other.SurvivedBattles && WinAndSurvived == other.WinAndSurvived && Wins == other.Wins && Xp == other.Xp && Wn7 == other.Wn7 && WinRate == other.WinRate && AvgDamage == other.AvgDamage && AvgXp == other.AvgXp && DamageCoefficient == other.DamageCoefficient && SurvivalRate == other.SurvivalRate; } public override global::System.Boolean Equals(global::System.Object? obj) { if (ReferenceEquals(null, obj)) { return false; } if (ReferenceEquals(this, obj)) { return true; } if (obj.GetType() != GetType()) { return false; } return Equals((Player_AccountInfo_Tanks_TankInfoResponse)obj); } public override global::System.Int32 GetHashCode() { unchecked { int hash = 5; hash ^= 397 * TankId.GetHashCode(); hash ^= 397 * BattleLifeTimeInSeconds.GetHashCode(); hash ^= 397 * MarkOfMastery.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 * IsPremium.GetHashCode(); if (PreviewImage != null) { hash ^= 397 * PreviewImage.GetHashCode(); } if (NormalImage != null) { hash ^= 397 * NormalImage.GetHashCode(); } hash ^= 397 * LastBattleTime.GetHashCode(); hash ^= 397 * Battles.GetHashCode(); hash ^= 397 * CapturePoints.GetHashCode(); hash ^= 397 * DamageDealt.GetHashCode(); hash ^= 397 * DamageReceived.GetHashCode(); hash ^= 397 * DroppedCapturePoints.GetHashCode(); hash ^= 397 * Frags.GetHashCode(); hash ^= 397 * Frags8P.GetHashCode(); hash ^= 397 * Hits.GetHashCode(); hash ^= 397 * Losses.GetHashCode(); hash ^= 397 * MaxFrags.GetHashCode(); hash ^= 397 * MaxXp.GetHashCode(); hash ^= 397 * Shots.GetHashCode(); hash ^= 397 * Spotted.GetHashCode(); hash ^= 397 * SurvivedBattles.GetHashCode(); hash ^= 397 * WinAndSurvived.GetHashCode(); hash ^= 397 * Wins.GetHashCode(); hash ^= 397 * Xp.GetHashCode(); hash ^= 397 * Wn7.GetHashCode(); hash ^= 397 * WinRate.GetHashCode(); hash ^= 397 * AvgDamage.GetHashCode(); hash ^= 397 * AvgXp.GetHashCode(); hash ^= 397 * DamageCoefficient.GetHashCode(); hash ^= 397 * SurvivalRate.GetHashCode(); return hash; } } } }