|
1 | 1 | package com.thebluealliance.api.v3.models; |
2 | 2 |
|
3 | | -import java.util.HashMap; |
4 | | - |
5 | 3 | /** |
6 | 4 | * Represents the ranking of a team at an event |
7 | 5 | */ |
8 | 6 | public class Ranking { |
9 | 7 | private int dq, matches_played, qual_average, rank; |
10 | | - private HashMap<String, WLTRecord> record; |
| 8 | + private WLTRecord record; |
11 | 9 | private String team_key; |
| 10 | + private double[] sort_orders; |
12 | 11 |
|
13 | 12 | /** |
14 | 13 | * @return Number of times disqualified |
@@ -40,24 +39,24 @@ public int getRank() { |
40 | 39 | } |
41 | 40 |
|
42 | 41 | /** |
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 |
44 | 43 | */ |
45 | | - public WLTRecord getQualificationsRecord() { |
46 | | - return record.get("qualifications"); |
| 44 | + public WLTRecord getRecord() { |
| 45 | + return record; |
47 | 46 | } |
48 | 47 |
|
49 | 48 | /** |
50 | | - * @return Win-Loss-Tie record information for the event, if available. May be null |
| 49 | + * @return The team with this rank. |
51 | 50 | */ |
52 | | - public WLTRecord getOverallRecord() { |
53 | | - return record.get("overall"); |
| 51 | + public String getTeamKey() { |
| 52 | + return team_key; |
54 | 53 | } |
55 | 54 |
|
56 | 55 | /** |
57 | | - * @return The team with this rank. |
| 56 | + * @return Sorting criteria values for the current season |
58 | 57 | */ |
59 | | - public String getTeamKey() { |
60 | | - return team_key; |
| 58 | + public double[] getSortOrders() { |
| 59 | + return sort_orders; |
61 | 60 | } |
62 | 61 |
|
63 | 62 |
|
|
0 commit comments