package net.pterodactylus.sone.core;
import net.pterodactylus.util.service.AbstractService;
+import freenet.client.HighLevelSimpleClient;
import freenet.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
*/
- public FreenetInterface(Node node) {
+ public FreenetInterface(Node node, HighLevelSimpleClient client) {
this.node = node;
+ this.client = client;
}
}
}
/* create freenet interface. */
- FreenetInterface freenetInterface = new FreenetInterface(pluginRespirator.getNode());
+ FreenetInterface freenetInterface = new FreenetInterface(pluginRespirator.getNode(), pluginRespirator.getHLSimpleClient());
/* create core. */
core = new Core();