1 package net.pterodactylus.sone.freenet
3 import freenet.client.*
7 * Facade for Freenet’s [freenet.client.HighLevelSimpleClient] to allow testing.
9 interface FreenetClient {
11 fun fetch(freenetKey: FreenetURI): FetchResult
15 class DefaultFreenetClient(private val highLevelSimpleClient: HighLevelSimpleClient) : FreenetClient {
17 override fun fetch(freenetKey: FreenetURI): FetchResult =
18 highLevelSimpleClient.fetch(freenetKey)