Skip to content

Commit 2868bcb

Browse files
committed
adding fields for FAForever#894
1 parent 4fc50f1 commit 2868bcb

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ dependencies {
171171
implementation("com.yahoo.elide:elide-datastore-jpa:${elideVersion}")
172172
implementation("com.yahoo.elide:elide-datastore-multiplex:${elideVersion}")
173173
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:${springdocVersion}")
174-
implementation("com.github.FAForever:faf-java-commons:0e5d22ffff6e4dea81bac494d532627fcca8ebc4")
174+
implementation("com.github.FAForever:faf-java-commons:bc0a20692e599cccb618e0c4346407a13e44464a")
175175
implementation("org.kohsuke:github-api:1.323")
176176
implementation("org.eclipse.jgit:org.eclipse.jgit:6.10.0.202406032230-r")
177177
implementation("org.jetbrains:annotations:24.1.0")

src/main/java/com/faforever/api/data/domain/MatchmakerQueueMapPool.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public class MatchmakerQueueMapPool extends AbstractEntity<MatchmakerQueueMapPoo
3030
private Double minRating;
3131
private Double maxRating;
3232
private MapPool mapPool;
33+
// Veto system fields
34+
private Integer vetoTokensPerPlayer;
35+
private Integer maxTokensPerMap;
36+
private Float minimalMapsAllowed;
3337

3438
@ManyToOne(fetch = FetchType.LAZY)
3539
@JoinColumn(name = "matchmaker_queue_id")
@@ -57,4 +61,22 @@ public Double getMaxRating() {
5761
public MapPool getMapPool() {
5862
return mapPool;
5963
}
64+
65+
@Column(name = "veto_tokens_per_player")
66+
@UpdatePermission(expression = WriteMatchmakerMapCheck.EXPRESSION)
67+
public Integer getVetoTokensPerPlayer() {
68+
return vetoTokensPerPlayer;
69+
}
70+
71+
@Column(name = "max_tokens_per_map")
72+
@UpdatePermission(expression = WriteMatchmakerMapCheck.EXPRESSION)
73+
public Integer getMaxTokensPerMap() {
74+
return maxTokensPerMap;
75+
}
76+
77+
@Column(name = "minimal_maps_allowed")
78+
@UpdatePermission(expression = WriteMatchmakerMapCheck.EXPRESSION)
79+
public Float getMinimalMapsAllowed() {
80+
return minimalMapsAllowed;
81+
}
6082
}

0 commit comments

Comments
 (0)