mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +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;
|
package ru.gravit.launcher.events.request;
|
||||||
|
|
||||||
|
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||||
import ru.gravit.launcher.request.ResultInterface;
|
import ru.gravit.launcher.request.ResultInterface;
|
||||||
import ru.gravit.utils.event.EventInterface;
|
import ru.gravit.utils.event.EventInterface;
|
||||||
|
|
||||||
|
@ -11,7 +12,7 @@ public class ErrorRequestEvent implements ResultInterface, EventInterface {
|
||||||
public ErrorRequestEvent(String error) {
|
public ErrorRequestEvent(String error) {
|
||||||
this.error = error;
|
this.error = error;
|
||||||
}
|
}
|
||||||
|
@LauncherNetworkAPI
|
||||||
public final String error;
|
public final String error;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package ru.gravit.launcher.events.request;
|
package ru.gravit.launcher.events.request;
|
||||||
|
|
||||||
|
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||||
import ru.gravit.launcher.request.ResultInterface;
|
import ru.gravit.launcher.request.ResultInterface;
|
||||||
|
|
||||||
public class ExecCommandRequestEvent implements ResultInterface {
|
public class ExecCommandRequestEvent implements ResultInterface {
|
||||||
|
@ -7,7 +8,7 @@ public class ExecCommandRequestEvent implements ResultInterface {
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return "execCmd";
|
return "execCmd";
|
||||||
}
|
}
|
||||||
|
@LauncherNetworkAPI
|
||||||
boolean success;
|
boolean success;
|
||||||
|
|
||||||
public ExecCommandRequestEvent(boolean success) {
|
public ExecCommandRequestEvent(boolean success) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package ru.gravit.launcher.events.request;
|
package ru.gravit.launcher.events.request;
|
||||||
|
|
||||||
|
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||||
import ru.gravit.launcher.request.ResultInterface;
|
import ru.gravit.launcher.request.ResultInterface;
|
||||||
import ru.gravit.utils.event.EventInterface;
|
import ru.gravit.utils.event.EventInterface;
|
||||||
|
|
||||||
|
@ -11,7 +12,7 @@ public class JoinServerRequestEvent implements EventInterface, ResultInterface {
|
||||||
public JoinServerRequestEvent(boolean allow) {
|
public JoinServerRequestEvent(boolean allow) {
|
||||||
this.allow = allow;
|
this.allow = allow;
|
||||||
}
|
}
|
||||||
|
@LauncherNetworkAPI
|
||||||
public boolean allow;
|
public boolean allow;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package ru.gravit.launcher.events.request;
|
package ru.gravit.launcher.events.request;
|
||||||
|
|
||||||
|
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||||
import ru.gravit.launcher.request.ResultInterface;
|
import ru.gravit.launcher.request.ResultInterface;
|
||||||
|
|
||||||
public class LogEvent implements ResultInterface {
|
public class LogEvent implements ResultInterface {
|
||||||
|
@ -7,7 +8,7 @@ public class LogEvent implements ResultInterface {
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return "log";
|
return "log";
|
||||||
}
|
}
|
||||||
|
@LauncherNetworkAPI
|
||||||
public String string;
|
public String string;
|
||||||
|
|
||||||
public LogEvent(String string) {
|
public LogEvent(String string) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package ru.gravit.launcher.events.request;
|
package ru.gravit.launcher.events.request;
|
||||||
|
|
||||||
|
import ru.gravit.launcher.LauncherNetworkAPI;
|
||||||
import ru.gravit.launcher.profiles.ClientProfile;
|
import ru.gravit.launcher.profiles.ClientProfile;
|
||||||
import ru.gravit.launcher.request.ResultInterface;
|
import ru.gravit.launcher.request.ResultInterface;
|
||||||
import ru.gravit.utils.event.EventInterface;
|
import ru.gravit.utils.event.EventInterface;
|
||||||
|
@ -8,6 +9,7 @@
|
||||||
|
|
||||||
public class SetProfileRequestEvent implements ResultInterface, EventInterface {
|
public class SetProfileRequestEvent implements ResultInterface, EventInterface {
|
||||||
private static final UUID uuid = UUID.fromString("08c0de9e-4364-4152-9066-8354a3a48541");
|
private static final UUID uuid = UUID.fromString("08c0de9e-4364-4152-9066-8354a3a48541");
|
||||||
|
@LauncherNetworkAPI
|
||||||
public ClientProfile newProfile;
|
public ClientProfile newProfile;
|
||||||
|
|
||||||
public SetProfileRequestEvent(ClientProfile newProfile) {
|
public SetProfileRequestEvent(ClientProfile newProfile) {
|
||||||
|
|
Loading…
Reference in a new issue