[FEATURE] FeaturesResponse and FeaturesRequest

This commit is contained in:
Gravita 2020-12-20 15:31:17 +07:00
parent cb5535b8ec
commit 826eb4c80f
2 changed files with 3 additions and 0 deletions

View file

@ -19,6 +19,7 @@
import pro.gravit.launchserver.socket.response.SimpleResponse; import pro.gravit.launchserver.socket.response.SimpleResponse;
import pro.gravit.launchserver.socket.response.WebSocketServerResponse; import pro.gravit.launchserver.socket.response.WebSocketServerResponse;
import pro.gravit.launchserver.socket.response.auth.*; import pro.gravit.launchserver.socket.response.auth.*;
import pro.gravit.launchserver.socket.response.management.FeaturesResponse;
import pro.gravit.launchserver.socket.response.management.PingServerReportResponse; import pro.gravit.launchserver.socket.response.management.PingServerReportResponse;
import pro.gravit.launchserver.socket.response.management.PingServerResponse; import pro.gravit.launchserver.socket.response.management.PingServerResponse;
import pro.gravit.launchserver.socket.response.management.ServerStatusResponse; import pro.gravit.launchserver.socket.response.management.ServerStatusResponse;
@ -103,6 +104,7 @@ public static void registerResponses() {
providers.register("pingServerReport", PingServerReportResponse.class); providers.register("pingServerReport", PingServerReportResponse.class);
providers.register("pingServer", PingServerResponse.class); providers.register("pingServer", PingServerResponse.class);
providers.register("currentUser", CurrentUserResponse.class); providers.register("currentUser", CurrentUserResponse.class);
providers.register("features", FeaturesResponse.class);
} }
public void process(ChannelHandlerContext ctx, TextWebSocketFrame frame, Client client, String ip) { public void process(ChannelHandlerContext ctx, TextWebSocketFrame frame, Client client, String ip) {

View file

@ -106,6 +106,7 @@ public void registerResults() {
results.register("pingServerReport", PingServerReportRequestEvent.class); results.register("pingServerReport", PingServerReportRequestEvent.class);
results.register("pingServer", PingServerRequestEvent.class); results.register("pingServer", PingServerRequestEvent.class);
results.register("currentUser", CurrentUserRequestEvent.class); results.register("currentUser", CurrentUserRequestEvent.class);
results.register("features", FeaturesRequestEvent.class);
} }
public void waitIfNotConnected() { public void waitIfNotConnected() {