//
#nullable enable
namespace WotBlitzStatisticsPro.Blazor.GraphQl
{
///
/// Represents information about player's achievements
///
[global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "12.12.1.0")]
public partial class Player_AccountMedals_AccountAchievementsResponse : global::System.IEquatable, IPlayer_AccountMedals_AccountAchievementsResponse
{
public Player_AccountMedals_AccountAchievementsResponse(global::System.Int64 accountId, global::System.Collections.Generic.IReadOnlyList? sections)
{
AccountId = accountId;
Sections = sections;
}
///
/// Player Id
///
public global::System.Int64 AccountId { get; }
///
/// Player Achievements by sections
///
public global::System.Collections.Generic.IReadOnlyList? Sections { get; }
public virtual global::System.Boolean Equals(Player_AccountMedals_AccountAchievementsResponse? other)
{
if (ReferenceEquals(null, other))
{
return false;
}
if (ReferenceEquals(this, other))
{
return true;
}
if (other.GetType() != GetType())
{
return false;
}
return (AccountId == other.AccountId) && global::StrawberryShake.Helper.ComparisonHelper.SequenceEqual(Sections, other.Sections);
}
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_AccountMedals_AccountAchievementsResponse)obj);
}
public override global::System.Int32 GetHashCode()
{
unchecked
{
int hash = 5;
hash ^= 397 * AccountId.GetHashCode();
if (Sections != null)
{
foreach (var Sections_elm in Sections)
{
hash ^= 397 * Sections_elm.GetHashCode();
}
}
return hash;
}
}
}
}