import net.pterodactylus.sone.utils.parameters
import net.pterodactylus.sone.web.WebInterface
import net.pterodactylus.sone.web.page.FreenetRequest
import net.pterodactylus.sone.utils.parameters
import net.pterodactylus.sone.web.WebInterface
import net.pterodactylus.sone.web.page.FreenetRequest
-class UnlockSoneAjaxPage(webInterface: WebInterface) : JsonPage("unlockSone.ajax", webInterface) {
+class UnlockSoneAjaxPage @Inject constructor(webInterface: WebInterface) :
+ JsonPage("unlockSone.ajax", webInterface) {
- ?.let(webInterface.core::getLocalSone)
- ?.also(webInterface.core::unlockSone)
- ?.also { webInterface.core.touchConfiguration() }
+ ?.let(core::getLocalSone)
+ ?.also(core::unlockSone)
+ ?.also { core.touchConfiguration() }