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

352 lines
14 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>
2022-08-22 17:25:41 +02:00
[global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "12.12.1.0")]
2021-05-28 13:39:29 +02:00
public partial class Player_AccountInfo_Tanks_TankInfoResponse : global::System.IEquatable<Player_AccountInfo_Tanks_TankInfoResponse>, IPlayer_AccountInfo_Tanks_TankInfoResponse
{
2021-06-04 15:35:53 +02:00
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)
2021-05-28 13:39:29 +02:00
{
TankId = tankId;
2021-05-28 16:56:12 +02:00
BattleLifeTimeInSeconds = battleLifeTimeInSeconds;
MarkOfMastery = markOfMastery;
2021-06-04 15:35:53 +02:00
AvgBattleLifeTimeInMinutes = avgBattleLifeTimeInMinutes;
Name = name;
TankNationId = tankNationId;
TankNation = tankNation;
Tier = tier;
TankTypeId = tankTypeId;
TankType = tankType;
IsPremium = isPremium;
PreviewImage = previewImage;
NormalImage = normalImage;
LastBattleTime = lastBattleTime;
2021-05-28 13:39:29 +02:00
Battles = battles;
2021-05-28 16:56:12 +02:00
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;
2021-05-28 13:39:29 +02:00
WinRate = winRate;
AvgDamage = avgDamage;
AvgXp = avgXp;
DamageCoefficient = damageCoefficient;
SurvivalRate = survivalRate;
}
/// <summary>
/// Tank identifier
/// </summary>
public global::System.Int64 TankId { get; }
/// <summary>
2021-05-28 16:56:12 +02:00
/// Total time in battle until tank killed
2021-05-28 13:39:29 +02:00
/// </summary>
2021-05-28 16:56:12 +02:00
public global::System.Int32 BattleLifeTimeInSeconds { get; }
2021-05-28 13:39:29 +02:00
2021-05-28 16:56:12 +02:00
/// <summary>
/// Mark of Mastery
/// </summary>
public global::WotBlitzStatisticsPro.Blazor.GraphQl.MarkOfMastery MarkOfMastery { 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; }
2021-06-04 15:35:53 +02:00
/// <summary>
/// Last battle time
/// </summary>
public global::System.DateTimeOffset LastBattleTime { 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 won 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; }
/// <summary>
/// Player's average damage
/// </summary>
public global::System.Decimal AvgDamage { get; }
/// <summary>
/// Player's average XP
/// </summary>
public global::System.Decimal AvgXp { get; }
/// <summary>
/// Damage coefficient
/// </summary>
public global::System.Decimal DamageCoefficient { get; }
/// <summary>
/// Rate of survival
/// </summary>
public global::System.Decimal SurvivalRate { get; }
2021-05-28 13:39:29 +02:00
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;
}
2021-06-04 15:35:53 +02:00
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;
2021-05-28 13:39:29 +02:00
}
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();
2021-05-28 16:56:12 +02:00
hash ^= 397 * BattleLifeTimeInSeconds.GetHashCode();
hash ^= 397 * MarkOfMastery.GetHashCode();
hash ^= 397 * AvgBattleLifeTimeInMinutes.GetHashCode();
2021-05-28 13:39:29 +02:00
if (Name != null)
{
hash ^= 397 * Name.GetHashCode();
}
2021-05-28 16:56:12 +02:00
if (TankNationId != null)
{
hash ^= 397 * TankNationId.GetHashCode();
}
2021-05-28 13:39:29 +02:00
if (TankNation != null)
{
hash ^= 397 * TankNation.GetHashCode();
}
2021-05-28 16:56:12 +02:00
hash ^= 397 * Tier.GetHashCode();
if (TankTypeId != null)
{
hash ^= 397 * TankTypeId.GetHashCode();
}
2021-05-28 13:39:29 +02:00
if (TankType != null)
{
hash ^= 397 * TankType.GetHashCode();
}
hash ^= 397 * IsPremium.GetHashCode();
2021-05-28 16:56:12 +02:00
if (PreviewImage != null)
{
hash ^= 397 * PreviewImage.GetHashCode();
}
if (NormalImage != null)
{
hash ^= 397 * NormalImage.GetHashCode();
}
2021-06-04 15:35:53 +02:00
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();
2021-05-28 13:39:29 +02:00
return hash;
}
}
}
}