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); }
public List <ClanWarAttack> NewAttacks(ClanWar fetched) => NewAttacks(this, fetched);