Files
WotBlitzStatisticsBlazor/WotBlitzStatisticsPro.Blazor/Generated/Player_AccountInfo_Tanks_TankInfoResponse.WotBlitzStatisticsProClient.StrawberryShake.cs
T

175 lines
6.1 KiB
C#
Raw Normal View History

2021-05-28 13:39:29 +02:00
// <auto-generated/>
#nullable enable
namespace WotBlitzStatisticsPro.Blazor.GraphQl
{
/// <summary>
/// Information about player's tank
/// </summary>
[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)
{
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;
}
/// <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>
/// Last battle
/// </summary>
public global::System.DateTimeOffset LastBattleTime { get; }
/// <summary>
/// Battles count
/// </summary>
public global::System.Int64 Battles { get; }
/// <summary>
/// Tank's win rate
/// </summary>
public global::System.Decimal WinRate { get; }
/// <summary>
/// Average tank's damage
/// </summary>
public global::System.Decimal AvgDamage { get; }
/// <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; }
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;
}
}
}
}