-
Notifications
You must be signed in to change notification settings - Fork 3
/
TeamEventStatus.java
103 lines (91 loc) · 1.96 KB
/
TeamEventStatus.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package com.thebluealliance.api.v3.models;
import lombok.Value;
/**
* Represents a team's status during an event
*/
public class TeamEventStatus {
/**
* The team's {@link Rank} during the qualification matches
*/
Rank qual;
/**
* The team's alliance selection information
*/
Alliance alliance;
/**
* Playoff status for this team, may be null if the team did not make playoffs, or playoffs have not begun.
*/
PlayoffStatus playoff;
/**
* An HTML formatted string suitable for display to the user containing the team's alliance pick status.
*/
String alliance_status_str;
/**
* An HTML formatter string suitable for display to the user containing the team�s playoff status.
*/
String playoff_status_str;
/**
* An HTML formatted string suitable for display to the user containing the team�s overall status summary of the event.
*/
String overall_status_str;
/**
* Holds rank information of a team during an event
*/
@Value
public class Rank {
/**
* Number of teams ranked.
*/
int num_teams;
/**
* Either <code>completed</code> or <code>ongoing</code>
*/
String status;
/**
* A {@link Ranking} describing the team's status in the qualification tournament
*/
Ranking ranking;
}
/**
* Describes a team's alliance during the playoff tournament
*/
@Value
public class Alliance {
/**
* Alliance name, may be null.
*/
String name;
/**
* Alliance number
*/
int number;
/**
* Order the team was picked in the alliance from 0-2, with 0 being alliance captain.
*/
int pick;
/**
* Backup status, may be null
*/
AllianceBackup backup;
/**
* Describes the backup status of an alliance
*/
@Value
public class AllianceBackup {
/**
* TBA key for the team replaced by the backup.
*/
String out;
/**
* TBA key for the backup team called in.
*/
String in;
}
}
@Value
public class PlayoffStatus {
String level;
String record;
String status;
}
}