diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/request/update/UpdateRequest.java b/LauncherAPI/src/main/java/pro/gravit/launcher/request/update/UpdateRequest.java index 29e25f15..3c8344bf 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/request/update/UpdateRequest.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/request/update/UpdateRequest.java @@ -1,17 +1,18 @@ package pro.gravit.launcher.request.update; -import pro.gravit.launcher.LauncherAPI; import pro.gravit.launcher.LauncherNetworkAPI; import pro.gravit.launcher.events.request.UpdateRequestEvent; import pro.gravit.launcher.request.Request; import pro.gravit.launcher.request.websockets.StandartClientWebSocketService; import pro.gravit.launcher.request.websockets.WebSocketRequest; import pro.gravit.utils.helper.LogHelper; -import java.nio.file.Path; -import java.util.Objects; public final class UpdateRequest extends Request implements WebSocketRequest { + public UpdateRequest(String dirName) { + this.dirName = dirName; + } + @Override public String getType() { return "update"; @@ -27,14 +28,5 @@ public UpdateRequestEvent requestDo(StandartClientWebSocketService service) thro // Instance @LauncherNetworkAPI - private transient final Path dir; - - public Path getDir() { - return dir; - } - - @LauncherAPI - public UpdateRequest(Path dir) { - this.dir = Objects.requireNonNull(dir, "dir"); - } + private final String dirName; }