[FIX] Фикс некоторых RequestEvent

This commit is contained in:
Gravit 2019-04-03 23:02:01 +07:00
parent 04cdfcb360
commit 558ad30e24
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
5 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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) {

View file

@ -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

View file

@ -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) {

View file

@ -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) {