uAL.TorrentAPI.NewTorrents C# (CSharp) Method

NewTorrents() private method

private NewTorrents ( ) : List
return List
        private List<Torrent> NewTorrents()
        {
            bool addTorrent = true;
            List<Torrent> newTorrents = new List<Torrent>();
            List<Torrent> torrents = GetTorrents(false);
            foreach (Torrent torrent in torrents)
            {
                addTorrent = true;
                foreach(Torrent cachedTorrent in torrentCollection)
                {
                    if (torrent.Hash == cachedTorrent.Hash)
                    {
                        addTorrent = false;
                        break;
                    }
                }
                if (addTorrent)
                    newTorrents.Add(torrent);
            }
            return newTorrents;
        }