1 package net.pterodactylus.sone.web
3 import freenet.clients.http.ToadletContext
4 import net.pterodactylus.sone.data.Sone
7 * Provides access to the currently logged-in [Sone].
9 interface SessionProvider {
11 fun getCurrentSone(toadletContext: ToadletContext, createSession: Boolean = true): Sone?
12 fun setCurrentSone(toadletContext: ToadletContext, sone: Sone?)