//
#nullable enable
namespace WotBlitzStatisticsPro.Blazor.GraphQl
{
[global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "12.12.1.0")]
public partial class FindClansResult : global::System.IEquatable, IFindClansResult
{
public FindClansResult(global::System.Collections.Generic.IReadOnlyList? clans)
{
Clans = clans;
}
///
/// Finds clans by search string
///
public global::System.Collections.Generic.IReadOnlyList? Clans { get; }
public virtual global::System.Boolean Equals(FindClansResult? other)
{
if (ReferenceEquals(null, other))
{
return false;
}
if (ReferenceEquals(this, other))
{
return true;
}
if (other.GetType() != GetType())
{
return false;
}
return (global::StrawberryShake.Helper.ComparisonHelper.SequenceEqual(Clans, other.Clans));
}
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((FindClansResult)obj);
}
public override global::System.Int32 GetHashCode()
{
unchecked
{
int hash = 5;
if (Clans != null)
{
foreach (var Clans_elm in Clans)
{
hash ^= 397 * Clans_elm.GetHashCode();
}
}
return hash;
}
}
}
}