TorrentStats torrentStats = new TorrentStats();
torrentStats.infoHash = infoHash;
torrentStats.seeders = (int)seedersQuery.countAll();
torrentStats.completed = 0; // TODO: Для этого поля нам понадобится вести статистику загрузок.
torrentStats.leechers = (int)leechersQuery.countAll();
torrentStatsList.add(torrentStats);
}
ScrapeResponse.send(this.getMessageEvent(), this.getTransactionId(), torrentStatsList);