mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Фикс некоторых RequestEvent
This commit is contained in:
parent
04cdfcb360
commit
558ad30e24
5 changed files with 10 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
package ru.gravit.launcher.events.request;
|
||||
|
||||
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||
import ru.gravit.launcher.request.ResultInterface;
|
||||
import ru.gravit.utils.event.EventInterface;
|
||||
|
||||
|
@ -11,7 +12,7 @@ public class ErrorRequestEvent implements ResultInterface, EventInterface {
|
|||
public ErrorRequestEvent(String error) {
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
@LauncherNetworkAPI
|
||||
public final String error;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package ru.gravit.launcher.events.request;
|
||||
|
||||
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||
import ru.gravit.launcher.request.ResultInterface;
|
||||
|
||||
public class ExecCommandRequestEvent implements ResultInterface {
|
||||
|
@ -7,7 +8,7 @@ public class ExecCommandRequestEvent implements ResultInterface {
|
|||
public String getType() {
|
||||
return "execCmd";
|
||||
}
|
||||
|
||||
@LauncherNetworkAPI
|
||||
boolean success;
|
||||
|
||||
public ExecCommandRequestEvent(boolean success) {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package ru.gravit.launcher.events.request;
|
||||
|
||||
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||
import ru.gravit.launcher.request.ResultInterface;
|
||||
import ru.gravit.utils.event.EventInterface;
|
||||
|
||||
|
@ -11,7 +12,7 @@ public class JoinServerRequestEvent implements EventInterface, ResultInterface {
|
|||
public JoinServerRequestEvent(boolean allow) {
|
||||
this.allow = allow;
|
||||
}
|
||||
|
||||
@LauncherNetworkAPI
|
||||
public boolean allow;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package ru.gravit.launcher.events.request;
|
||||
|
||||
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||
import ru.gravit.launcher.request.ResultInterface;
|
||||
|
||||
public class LogEvent implements ResultInterface {
|
||||
|
@ -7,7 +8,7 @@ public class LogEvent implements ResultInterface {
|
|||
public String getType() {
|
||||
return "log";
|
||||
}
|
||||
|
||||
@LauncherNetworkAPI
|
||||
public String string;
|
||||
|
||||
public LogEvent(String string) {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package ru.gravit.launcher.events.request;
|
||||
|
||||
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||
import ru.gravit.launcher.profiles.ClientProfile;
|
||||
import ru.gravit.launcher.request.ResultInterface;
|
||||
import ru.gravit.utils.event.EventInterface;
|
||||
|
@ -8,6 +9,7 @@
|
|||
|
||||
public class SetProfileRequestEvent implements ResultInterface, EventInterface {
|
||||
private static final UUID uuid = UUID.fromString("08c0de9e-4364-4152-9066-8354a3a48541");
|
||||
@LauncherNetworkAPI
|
||||
public ClientProfile newProfile;
|
||||
|
||||
public SetProfileRequestEvent(ClientProfile newProfile) {
|
||||
|
|
Loading…
Reference in a new issue