feat: card for team
This commit is contained in:
@@ -117,6 +117,20 @@ public class RState {
|
||||
}
|
||||
}
|
||||
|
||||
public List<Long> getAllCategories(String uuid) {
|
||||
return tableStates.values().stream()
|
||||
.filter(s -> s.getCompetitionUuid()
|
||||
.equals(uuid) && s.getSelectedCategory() != null && s.getSelectedCategory() != -1)
|
||||
.map(TableState::getSelectedCategory).distinct().toList();
|
||||
}
|
||||
|
||||
public List<Long> getAllMatchActive(String uuid) {
|
||||
return tableStates.values().stream()
|
||||
.filter(s -> s.getCompetitionUuid()
|
||||
.equals(uuid) && s.getState() == MatchState.IN_PROGRESS && s.getSelectedMatch() != null && s.getSelectedMatch() != -1)
|
||||
.map(TableState::getSelectedMatch).distinct().toList();
|
||||
}
|
||||
|
||||
@RegisterForReflection
|
||||
public record ChronoState(long time, long startTime, long configTime, long configPause, int state) {
|
||||
public boolean isRunning() {
|
||||
|
||||
Reference in New Issue
Block a user