Compare commits

..

1 commit

Author SHA1 Message Date
b1a308ce89
TD-18: Implement Queue System
All checks were successful
Quality Check / Validate OAS (push) Successful in 40s
Quality Check / Validate OAS (pull_request) Successful in 38s
Quality Check / Testing (push) Successful in 1m17s
Quality Check / Linting (push) Successful in 1m18s
Quality Check / Static Analysis (push) Successful in 1m27s
Quality Check / Linting (pull_request) Successful in 1m11s
Quality Check / Static Analysis (pull_request) Successful in 1m12s
Quality Check / Testing (pull_request) Successful in 48s
2025-02-28 08:31:49 +01:00
3 changed files with 3 additions and 5 deletions

View file

@ -4,6 +4,7 @@ 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;
} }

View file

@ -4,6 +4,7 @@ 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;
} }

View file

@ -16,6 +16,7 @@ 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;
@ -25,11 +26,6 @@ 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(