public LocateResult(IList <TorrentFileLink> torrentFileLinks)
 {
     this._torrentFileLinks = torrentFileLinks;
     this._locateState      = this._torrentFileLinks.Any(c => c.State != LinkState.Located)
         ? LocateState.Fail
         : LocateState.Succeed;
     if (this._locateState == LocateState.Succeed)
     {
         this._locatedCount   = this._torrentFileLinks.Count;
         this._unlocatedCount = 0;
     }
     else
     {
         this._locatedCount   = this._torrentFileLinks.Count(c => c.State == LinkState.Located);
         this._unlocatedCount = this._torrentFileLinks.Count - this._locatedCount;
     }
 }
 public LocateResult(IList<TorrentFileLink> torrentFileLinks)
 {
     this._torrentFileLinks = torrentFileLinks;
     this._locateState = this._torrentFileLinks.Any(c => c.State != LinkState.Located)
         ? LocateState.Fail
         : LocateState.Succeed;
     if (this._locateState == LocateState.Succeed)
     {
         this._locatedCount = this._torrentFileLinks.Count;
         this._unlocatedCount = 0;
     }
     else
     {
         this._locatedCount = this._torrentFileLinks.Count(c => c.State == LinkState.Located);
         this._unlocatedCount = this._torrentFileLinks.Count - this._locatedCount;
     }
 }