[FIX] WebSockets зарегистрировал RequestEvent

This commit is contained in:
Gravit 2019-02-10 15:15:25 +07:00
parent 4c7e3a8d44
commit 5b22989e57
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -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)