mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] WebSockets зарегистрировал RequestEvent
This commit is contained in:
parent
4c7e3a8d44
commit
5b22989e57
1 changed files with 11 additions and 1 deletions
|
@ -2,10 +2,11 @@
|
|||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import ru.gravit.launcher.events.request.EchoRequestEvent;
|
||||
import ru.gravit.launcher.events.request.*;
|
||||
import ru.gravit.launcher.hasher.HashedEntry;
|
||||
import ru.gravit.launcher.hasher.HashedEntryAdapter;
|
||||
import ru.gravit.launcher.request.ResultInterface;
|
||||
import ru.gravit.launcher.request.auth.JoinServerRequest;
|
||||
import ru.gravit.utils.helper.LogHelper;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -78,6 +79,15 @@ public void registerResult(String key, Class<? extends ResultInterface> clazz) {
|
|||
|
||||
public void registerResults() {
|
||||
registerResult("echo", EchoRequestEvent.class);
|
||||
registerResult("auth", AuthRequestEvent.class);
|
||||
registerResult("checkServer", CheckServerEvent.class);
|
||||
registerResult("joinServer", JoinServerRequestEvent.class);
|
||||
registerResult("launcher", LauncherRequestEvent.class);
|
||||
registerResult("profileByUsername", ProfileByUsernameRequestEvent.class);
|
||||
registerResult("profileByUUID", ProfileByUUIDRequestEvent.class);
|
||||
registerResult("batchProfileByUsername", BatchProfileByUsernameRequestEvent.class);
|
||||
registerResult("profiles", ProfilesRequestEvent.class);
|
||||
registerResult("updateList", UpdateListRequestEvent.class);
|
||||
}
|
||||
|
||||
public void registerHandler(EventHandler eventHandler)
|
||||
|
|
Loading…
Reference in a new issue