// #nullable enable namespace WotBlitzStatisticsPro.Blazor.GraphQl { /// /// Information about player's tank /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")] public partial class Player_AccountInfo_Tanks_TankInfoResponse : global::System.IEquatable, IPlayer_AccountInfo_Tanks_TankInfoResponse { public Player_AccountInfo_Tanks_TankInfoResponse(global::System.Int64 tankId, global::System.String? name, global::System.String? tankNation, global::System.String? tankType, global::System.Int32 tier, global::System.Boolean isPremium, global::System.DateTimeOffset lastBattleTime, global::System.Int64 battles, global::System.Decimal winRate, global::System.Decimal avgDamage, global::System.Decimal avgXp, global::System.Decimal avgBattleLifeTimeInMinutes, global::System.Decimal damageCoefficient, global::System.Decimal survivalRate) { TankId = tankId; Name = name; TankNation = tankNation; TankType = tankType; Tier = tier; IsPremium = isPremium; LastBattleTime = lastBattleTime; Battles = battles; WinRate = winRate; AvgDamage = avgDamage; AvgXp = avgXp; AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes; DamageCoefficient = damageCoefficient; SurvivalRate = survivalRate; } /// /// Tank identifier /// public global::System.Int64 TankId { get; } /// /// Tank name /// public global::System.String? Name { get; } /// /// Localized tank nation name /// public global::System.String? TankNation { get; } /// /// Localized tank type name /// public global::System.String? TankType { get; } /// /// Tank tier /// public global::System.Int32 Tier { get; } /// /// Is it premium tank or not /// public global::System.Boolean IsPremium { get; } /// /// Last battle /// public global::System.DateTimeOffset LastBattleTime { get; } /// /// Battles count /// public global::System.Int64 Battles { get; } /// /// Tank's win rate /// public global::System.Decimal WinRate { get; } /// /// Average tank's damage /// public global::System.Decimal AvgDamage { get; } /// /// Average XP /// public global::System.Decimal AvgXp { get; } /// /// Average life time in battle until tank is killed. /// public global::System.Decimal AvgBattleLifeTimeInMinutes { get; } /// /// Damage coefficient /// public global::System.Decimal DamageCoefficient { get; } /// /// Rate of survival /// public global::System.Decimal SurvivalRate { get; } 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) && ((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; } 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(); if (Name != null) { hash ^= 397 * Name.GetHashCode(); } if (TankNation != null) { hash ^= 397 * TankNation.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(); return hash; } } } }