예제 #1
0
        /// <summary>
        /// Returns true if PlayerClan instances are equal
        /// </summary>
        /// <param name="input">Instance of PlayerClan to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PlayerClan?input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Tag == input.Tag ||
                     (Tag != null &&
                      Tag.Equals(input.Tag))
                     ) &&
                 (
                     ClanLevel == input.ClanLevel ||
                     ClanLevel.Equals(input.ClanLevel)
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     BadgeUrls == input.BadgeUrls ||
                     (BadgeUrls != null &&
                      BadgeUrls.Equals(input.BadgeUrls))
                 ));
        }
예제 #2
0
        /// <summary>
        /// Returns true if ClanWarLeagueClan instances are equal
        /// </summary>
        /// <param name="input">Instance of ClanWarLeagueClan to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ClanWarLeagueClan?input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Tag == input.Tag ||
                     (Tag != null &&
                      Tag.Equals(input.Tag))
                     ) &&
                 (
                     ClanLevel == input.ClanLevel ||
                     ClanLevel.Equals(input.ClanLevel)
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     Members == input.Members ||
                     Members != null &&
                     input.Members != null &&
                     Members.SequenceEqual(input.Members)
                 ) &&
                 (
                     BadgeUrls == input.BadgeUrls ||
                     (BadgeUrls != null &&
                      BadgeUrls.Equals(input.BadgeUrls))
                 ));
        }
예제 #3
0
        /// <summary>
        /// Returns true if WarClan instances are equal
        /// </summary>
        /// <param name="input">Instance of WarClan to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(WarClan?input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DestructionPercentage == input.DestructionPercentage ||
                     DestructionPercentage.Equals(input.DestructionPercentage)
                     ) &&
                 (
                     Tag == input.Tag ||
                     (Tag != null &&
                      Tag.Equals(input.Tag))
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     BadgeUrls == input.BadgeUrls ||
                     (BadgeUrls != null &&
                      BadgeUrls.Equals(input.BadgeUrls))
                 ) &&
                 (
                     ClanLevel == input.ClanLevel ||
                     ClanLevel.Equals(input.ClanLevel)
                 ) &&
                 (
                     Attacks == input.Attacks ||
                     Attacks.Equals(input.Attacks)
                 ) &&
                 (
                     Stars == input.Stars ||
                     Stars.Equals(input.Stars)
                 ) &&
                 (
                     ExpEarned == input.ExpEarned ||
                     ExpEarned.Equals(input.ExpEarned)
                 ) &&
                 (
                     Members == input.Members ||
                     Members != null &&
                     input.Members != null &&
                     Members.SequenceEqual(input.Members)
                 ));
        }
예제 #4
0
        /// <summary>
        /// Returns true if ClanRanking instances are equal
        /// </summary>
        /// <param name="input">Instance of ClanRanking to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ClanRanking?input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ClanLevel == input.ClanLevel ||
                     ClanLevel.Equals(input.ClanLevel)
                     ) &&
                 (
                     ClanPoints == input.ClanPoints ||
                     ClanPoints.Equals(input.ClanPoints)
                 ) &&
                 (
                     Location == input.Location ||
                     (Location != null &&
                      Location.Equals(input.Location))
                 ) &&
                 (
                     Members == input.Members ||
                     Members.Equals(input.Members)
                 ) &&
                 (
                     Tag == input.Tag ||
                     (Tag != null &&
                      Tag.Equals(input.Tag))
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     Rank == input.Rank ||
                     Rank.Equals(input.Rank)
                 ) &&
                 (
                     PreviousRank == input.PreviousRank ||
                     PreviousRank.Equals(input.PreviousRank)
                 ) &&
                 (
                     BadgeUrls == input.BadgeUrls ||
                     (BadgeUrls != null &&
                      BadgeUrls.Equals(input.BadgeUrls))
                 ));
        }
예제 #5
0
파일: Clan.cs 프로젝트: devhl-labs/CocApi
        /// <summary>
        /// Returns true if Clan instances are equal
        /// </summary>
        /// <param name="input">Instance of Clan to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Clan?input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     WarLeague == input.WarLeague ||
                     (WarLeague != null &&
                      WarLeague.Equals(input.WarLeague))
                     ) &&

                 (
                     RequiredTrophies == input.RequiredTrophies ||
                     RequiredTrophies.Equals(input.RequiredTrophies)
                 ) &&
                 (
                     ClanVersusPoints == input.ClanVersusPoints ||
                     ClanVersusPoints.Equals(input.ClanVersusPoints)
                 ) &&
                 (
                     Tag == input.Tag ||
                     (Tag != null &&
                      Tag.Equals(input.Tag))
                 ) &&
                 (
                     IsWarLogPublic == input.IsWarLogPublic ||
                     IsWarLogPublic.Equals(input.IsWarLogPublic)
                 ) &&
                 (
                     WarFrequency == input.WarFrequency ||
                     WarFrequency.Equals(input.WarFrequency)
                 ) &&
                 (
                     ClanLevel == input.ClanLevel ||
                     ClanLevel.Equals(input.ClanLevel)
                 ) &&
                 (
                     WarWinStreak == input.WarWinStreak ||
                     WarWinStreak.Equals(input.WarWinStreak)
                 ) &&
                 (
                     WarWins == input.WarWins ||
                     WarWins.Equals(input.WarWins)
                 ) &&
                 (
                     WarTies == input.WarTies ||
                     WarTies.Equals(input.WarTies)
                 ) &&
                 (
                     WarLosses == input.WarLosses ||
                     WarLosses.Equals(input.WarLosses)
                 ) &&
                 (
                     ClanPoints == input.ClanPoints ||
                     ClanPoints.Equals(input.ClanPoints)
                 ) &&
                 (
                     Labels == input.Labels ||
                     Labels != null &&
                     input.Labels != null &&
                     Labels.SequenceEqual(input.Labels)
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     Location == input.Location ||
                     (Location != null &&
                      Location.Equals(input.Location))
                 ) &&
                 (
                     Type == input.Type ||
                     Type.Equals(input.Type)
                 ) &&
                 (
                     Members == input.Members ||
                     Members.Equals(input.Members)
                 ) &&
                 (
                     Description == input.Description ||
                     (Description != null &&
                      Description.Equals(input.Description))
                 ) &&
                 (
                     BadgeUrls == input.BadgeUrls ||
                     (BadgeUrls != null &&
                      BadgeUrls.Equals(input.BadgeUrls))
                 ));
        }