mirror of
https://gitlab.com/biskuteri-cafe/JKomasto2.git
synced 2024-11-20 06:34:49 +01:00
e4f13ad8c8
Somewhat works now, but I think we'll abandon it..
32 lines
433 B
Java
32 lines
433 B
Java
|
|
import cafe.biskuteri.hinoki.Tree;
|
|
import java.io.IOException;
|
|
|
|
interface
|
|
RequestListener {
|
|
|
|
void
|
|
connectionFailed(IOException eIo);
|
|
|
|
void
|
|
requestFailed(int httpCode, Tree<String> json);
|
|
|
|
void
|
|
requestSucceeded(Tree<String> json);
|
|
|
|
}
|
|
|
|
interface
|
|
ServerSideEventsListener {
|
|
|
|
void
|
|
connectionFailed(IOException eIo);
|
|
|
|
void
|
|
requestFailed(int httpCode, Tree<String> json);
|
|
|
|
void
|
|
lineReceived(String line);
|
|
|
|
}
|