Esempio n. 1
0
        internal void FileAddedEvent(int nzbID, int fileID, int segments, ulong size)
        {
            NZBFile nzbFile;

            if (_nzbFileMap.TryGetValue(nzbID, out nzbFile))
            {
                var nzbPart = new NZBFilePart(nzbID, segments, size);

                _filePartMap[fileID] = nzbPart;

                nzbFile.AddPart(nzbPart);
            }
        }
Esempio n. 2
0
 internal void AddPart(NZBFilePart file)
 {
     Content.Add(file);
     Size  += file.Size;
     Parts += file.Segments;
 }