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

            return
                ((
                     Order == input.Order ||
                     Order.Equals(input.Order)
                     ) &&
                 (
                     AttackerTag == input.AttackerTag ||
                     (AttackerTag != null &&
                      AttackerTag.Equals(input.AttackerTag))
                 ) &&
                 (
                     DefenderTag == input.DefenderTag ||
                     (DefenderTag != null &&
                      DefenderTag.Equals(input.DefenderTag))
                 ) &&
                 (
                     Stars == input.Stars ||
                     Stars.Equals(input.Stars)
                 ) &&
                 (
                     DestructionPercentage == input.DestructionPercentage ||
                     DestructionPercentage.Equals(input.DestructionPercentage)
                 ));
        }
Exemplo n.º 2
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)
                 ));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Returns true if PlayerAchievementProgress instances are equal
        /// </summary>
        /// <param name="input">Instance of PlayerAchievementProgress to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PlayerAchievementProgress?input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Stars == input.Stars ||
                     Stars.Equals(input.Stars)
                     ) &&
                 (
                     Value == input.Value ||
                     Value.Equals(input.Value)
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     Target == input.Target ||
                     Target.Equals(input.Target)
                 ) &&
                 (
                     Info == input.Info ||
                     (Info != null &&
                      Info.Equals(input.Info))
                 ) &&
                 (
                     CompletionInfo == input.CompletionInfo ||
                     (CompletionInfo != null &&
                      CompletionInfo.Equals(input.CompletionInfo))
                 ) &&
                 (
                     Village == input.Village ||
                     (Village != null &&
                      Village.Equals(input.Village))
                 ));
        }