mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
21 lines
729 B
Java
21 lines
729 B
Java
package pro.gravit.launcher.client;
|
|
|
|
import com.google.gson.GsonBuilder;
|
|
import pro.gravit.launcher.core.managers.GsonManager;
|
|
import pro.gravit.launcher.base.modules.events.PreGsonPhase;
|
|
import pro.gravit.launcher.base.request.websockets.ClientWebSocketService;
|
|
|
|
public class ClientGsonManager extends GsonManager {
|
|
private final ClientModuleManager moduleManager;
|
|
|
|
public ClientGsonManager(ClientModuleManager moduleManager) {
|
|
this.moduleManager = moduleManager;
|
|
}
|
|
|
|
@Override
|
|
public void registerAdapters(GsonBuilder builder) {
|
|
super.registerAdapters(builder);
|
|
ClientWebSocketService.appendTypeAdapters(builder);
|
|
moduleManager.invokeEvent(new PreGsonPhase(builder));
|
|
}
|
|
}
|