Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit f91400a

Browse files
committed
Fix team ranking object model
1 parent 281ed1e commit f91400a

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.idea/modules/TBA_Java_APIv3.iml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/thebluealliance/api/v3/models/Ranking.java

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package com.thebluealliance.api.v3.models;
22

3-
import java.util.HashMap;
4-
53
/**
64
* Represents the ranking of a team at an event
75
*/
86
public class Ranking {
97
private int dq, matches_played, qual_average, rank;
10-
private HashMap<String, WLTRecord> record;
8+
private WLTRecord record;
119
private String team_key;
10+
private double[] sort_orders;
1211

1312
/**
1413
* @return Number of times disqualified
@@ -40,24 +39,24 @@ public int getRank() {
4039
}
4140

4241
/**
43-
* @return Win-Loss-Tie record information for qualification matches, if available. May be null
42+
* @return Win-Loss-Tie object model for all matches
4443
*/
45-
public WLTRecord getQualificationsRecord() {
46-
return record.get("qualifications");
44+
public WLTRecord getRecord() {
45+
return record;
4746
}
4847

4948
/**
50-
* @return Win-Loss-Tie record information for the event, if available. May be null
49+
* @return The team with this rank.
5150
*/
52-
public WLTRecord getOverallRecord() {
53-
return record.get("overall");
51+
public String getTeamKey() {
52+
return team_key;
5453
}
5554

5655
/**
57-
* @return The team with this rank.
56+
* @return Sorting criteria values for the current season
5857
*/
59-
public String getTeamKey() {
60-
return team_key;
58+
public double[] getSortOrders() {
59+
return sort_orders;
6160
}
6261

6362

0 commit comments

Comments
 (0)