Example #1
0
        public static List <ClanWarAttack> NewAttacks(ClanWar stored, ClanWar fetched)
        {
            List <ClanWarAttack> attacks = new List <ClanWarAttack>();

            foreach (ClanWarAttack attack in fetched.Attacks)
            {
                if (stored.Attacks.Count(a => a.AttackerTag == attack.AttackerTag && a.DefenderTag == attack.DefenderTag) == 0)
                {
                    attacks.Add(attack);
                }
            }

            return(attacks);
        }
Example #2
0
 public List <ClanWarAttack> NewAttacks(ClanWar fetched) => NewAttacks(this, fetched);