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

            return
                ((
                     Clan == input.Clan ||
                     (Clan != null &&
                      Clan.Equals(input.Clan))
                     ) &&
                 (
                     League == input.League ||
                     (League != null &&
                      League.Equals(input.League))
                 ) &&
                 (
                     AttackWins == input.AttackWins ||
                     AttackWins.Equals(input.AttackWins)
                 ) &&
                 (
                     DefenseWins == input.DefenseWins ||
                     DefenseWins.Equals(input.DefenseWins)
                 ) &&
                 (
                     Tag == input.Tag ||
                     (Tag != null &&
                      Tag.Equals(input.Tag))
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     ExpLevel == input.ExpLevel ||
                     ExpLevel.Equals(input.ExpLevel)
                 ) &&
                 (
                     Rank == input.Rank ||
                     Rank.Equals(input.Rank)
                 ) &&
                 (
                     PreviousRank == input.PreviousRank ||
                     PreviousRank.Equals(input.PreviousRank)
                 ) &&
                 (
                     Trophies == input.Trophies ||
                     Trophies.Equals(input.Trophies)
                 ));
        }
Ejemplo n.º 2
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))
                 ));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns true if PlayerVersusRanking instances are equal
        /// </summary>
        /// <param name="input">Instance of PlayerVersusRanking to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PlayerVersusRanking?input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Clan == input.Clan ||
                     (Clan != null &&
                      Clan.Equals(input.Clan))
                     ) &&
                 (
                     VersusBattleWins == input.VersusBattleWins ||
                     VersusBattleWins.Equals(input.VersusBattleWins)
                 ) &&
                 (
                     Tag == input.Tag ||
                     (Tag != null &&
                      Tag.Equals(input.Tag))
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     ExpLevel == input.ExpLevel ||
                     ExpLevel.Equals(input.ExpLevel)
                 ) &&
                 (
                     Rank == input.Rank ||
                     Rank.Equals(input.Rank)
                 ) &&
                 (
                     PreviousRank == input.PreviousRank ||
                     PreviousRank.Equals(input.PreviousRank)
                 ) &&
                 (
                     VersusTrophies == input.VersusTrophies ||
                     VersusTrophies.Equals(input.VersusTrophies)
                 ));
        }