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