projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Complete javadoc.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
FreenetInterface.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java
b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java
index
9241e35
..
9214d85
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/FreenetInterface.java
+++ b/
src/main/java/net/pterodactylus/sone/core/FreenetInterface.java
@@
-18,6
+18,7
@@
package net.pterodactylus.sone.core;
import net.pterodactylus.util.service.AbstractService;
package net.pterodactylus.sone.core;
import net.pterodactylus.util.service.AbstractService;
+import freenet.client.HighLevelSimpleClient;
import freenet.node.Node;
/**
import freenet.node.Node;
/**
@@
-30,14
+31,20
@@
public class FreenetInterface extends AbstractService {
/** The node to interact with. */
private final Node node;
/** The node to interact with. */
private final Node node;
+ /** The high-level client to use for requests. */
+ private final HighLevelSimpleClient client;
+
/**
* Creates a new Freenet interface.
*
* @param node
* The node to interact with
/**
* Creates a new Freenet interface.
*
* @param node
* The node to interact with
+ * @param client
+ * The high-level client
*/
*/
- public FreenetInterface(Node node) {
+ public FreenetInterface(Node node
, HighLevelSimpleClient client
) {
this.node = node;
this.node = node;
+ this.client = client;
}
}
}
}