// #nullable enable namespace WotBlitzStatisticsPro.Blazor.GraphQl { /// /// Found clans list item /// [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "12.12.1.0")] public partial class FindClans_Clans_ClanSearchResponseItem : global::System.IEquatable, IFindClans_Clans_ClanSearchResponseItem { public FindClans_Clans_ClanSearchResponseItem(global::System.Int64 clanId, global::System.Int32 createdAt, global::System.Int32 membersCount, global::System.String? name, global::System.String? tag) { ClanId = clanId; CreatedAt = createdAt; MembersCount = membersCount; Name = name; Tag = tag; } /// /// Clan Id /// public global::System.Int64 ClanId { get; } /// /// Clan created at. (UNIX Epoch time) /// public global::System.Int32 CreatedAt { get; } /// /// Clan members count /// public global::System.Int32 MembersCount { get; } /// /// Clan Name /// public global::System.String? Name { get; } /// /// Clan Tag /// public global::System.String? Tag { get; } public virtual global::System.Boolean Equals(FindClans_Clans_ClanSearchResponseItem? other) { if (ReferenceEquals(null, other)) { return false; } if (ReferenceEquals(this, other)) { return true; } if (other.GetType() != GetType()) { return false; } return (ClanId == other.ClanId) && CreatedAt == other.CreatedAt && MembersCount == other.MembersCount && ((Name is null && other.Name is null) || Name != null && Name.Equals(other.Name)) && ((Tag is null && other.Tag is null) || Tag != null && Tag.Equals(other.Tag)); } 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((FindClans_Clans_ClanSearchResponseItem)obj); } public override global::System.Int32 GetHashCode() { unchecked { int hash = 5; hash ^= 397 * ClanId.GetHashCode(); hash ^= 397 * CreatedAt.GetHashCode(); hash ^= 397 * MembersCount.GetHashCode(); if (Name != null) { hash ^= 397 * Name.GetHashCode(); } if (Tag != null) { hash ^= 397 * Tag.GetHashCode(); } return hash; } } } }