Compare commits
1 commit
b1a308ce89
...
a069544ac4
Author | SHA1 | Date | |
---|---|---|---|
a069544ac4 |
3 changed files with 5 additions and 3 deletions
|
@ -4,7 +4,6 @@ import de.towerdefence.server.player.Player;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@FunctionalInterface
|
|
||||||
public interface FoundCallback {
|
public interface FoundCallback {
|
||||||
void call(Player player, String matchId, long created, long ttl) throws IOException;
|
void call(Player player, String matchId, long created, long ttl) throws IOException;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ import de.towerdefence.server.player.Player;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@FunctionalInterface
|
|
||||||
public interface QueuedCallback {
|
public interface QueuedCallback {
|
||||||
void call(Player player) throws IOException;
|
void call(Player player) throws IOException;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@ import java.util.Map;
|
||||||
public class MatchSetSearchStateMessage extends JsonMessage {
|
public class MatchSetSearchStateMessage extends JsonMessage {
|
||||||
public static final String MESSAGE_ID = "MatchSetSearchState";
|
public static final String MESSAGE_ID = "MatchSetSearchState";
|
||||||
|
|
||||||
@Getter
|
|
||||||
@JsonProperty("$id")
|
@JsonProperty("$id")
|
||||||
private String messageId;
|
private String messageId;
|
||||||
|
|
||||||
|
@ -26,6 +25,11 @@ public class MatchSetSearchStateMessage extends JsonMessage {
|
||||||
this(MESSAGE_ID, searching);
|
this(MESSAGE_ID, searching);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getMessageId() {
|
||||||
|
return messageId;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Map<String, JsonNode> getData(JsonNodeFactory factory) {
|
protected Map<String, JsonNode> getData(JsonNodeFactory factory) {
|
||||||
return Map.of(
|
return Map.of(
|
||||||
|
|
Loading…
Add table
Reference in a new issue