mirror of https://github.com/zlatinb/muwire
Downloaded file and event
parent
95071deb0a
commit
198eb138dc
|
@ -1,12 +1,11 @@
|
|||
package com.muwire.core.files
|
||||
|
||||
import com.muwire.core.DownloadedFile
|
||||
import com.muwire.core.Event
|
||||
import com.muwire.core.SharedFile
|
||||
|
||||
import net.i2p.data.Destination
|
||||
|
||||
class FileDownloadedEvent extends Event {
|
||||
|
||||
SharedFile downloadedFile
|
||||
List<Destination> sources
|
||||
DownloadedFile downloadedFile
|
||||
}
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
package com.muwire.core;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Set;
|
||||
|
||||
import net.i2p.data.Destination;
|
||||
|
||||
public class DownloadedFile extends SharedFile {
|
||||
|
||||
private final Set<Destination> sources;
|
||||
|
||||
public DownloadedFile(File file, InfoHash infoHash, Set<Destination> sources) {
|
||||
super(file, infoHash);
|
||||
this.sources = sources;
|
||||
}
|
||||
|
||||
public Set<Destination> getSources() {
|
||||
return sources;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue