|
3 | 3 | import com.thebluealliance.api.v3.requests.*; |
4 | 4 |
|
5 | 5 | /** |
6 | | - * Base class used to access the The Blue Alliance API. |
7 | | - * A TBA object must be created to use this client library. |
| 6 | + * Base class used to access the The Blue Alliance API. A TBA object must be created to use this client library. |
8 | 7 | */ |
9 | 8 | public class TBA { |
10 | 9 |
|
11 | | - private static String AUTH_KEY; |
12 | | - |
13 | | - /** |
14 | | - * A {@link DataRequest} object to make direct calls to the API |
15 | | - */ |
16 | | - public final DataRequest dataRequest; |
17 | | - |
18 | | - /** |
19 | | - * A {@link TeamRequest} object to make calls in which a <code>teamNumber</code> is the primary argument |
20 | | - */ |
21 | | - public final TeamRequest teamRequest; |
22 | | - |
23 | | - /** |
24 | | - * An {@link EventRequest} object to make calls in which an <code>eventKey</code> is the primary argument |
25 | | - */ |
26 | | - public final EventRequest eventRequest; |
27 | | - |
28 | | - /** |
29 | | - * A {@link DistrictRequest} object to make calls in which a <code>districtKey</code> is the primary argument |
30 | | - */ |
31 | | - public final DistrictRequest districtRequest; |
32 | | - |
33 | | - /** |
34 | | - * A {@link MatchRequest} object to make calls in which a <code>matchKey</code> is the primary argument |
35 | | - */ |
36 | | - public final MatchRequest matchRequest; |
37 | | - |
38 | | - /** |
39 | | - * Create a TBA object to make API requests |
40 | | - * |
41 | | - * @param authKey The Read API Key, generated on your |
42 | | - * <a href="https://www.thebluealliance.com/account">Account Dashboard</a> on The Blue Alliance |
43 | | - */ |
44 | | - public TBA(String authKey) { |
45 | | - AUTH_KEY = authKey; |
46 | | - dataRequest = new DataRequest(AUTH_KEY); |
47 | | - teamRequest = new TeamRequest(dataRequest); |
48 | | - eventRequest = new EventRequest(dataRequest); |
49 | | - districtRequest = new DistrictRequest(dataRequest); |
50 | | - matchRequest = new MatchRequest(dataRequest); |
51 | | - } |
52 | | - |
| 10 | + private static String AUTH_KEY; |
| 11 | + |
| 12 | + /** |
| 13 | + * A {@link DataRequest} object to make direct calls to the API |
| 14 | + */ |
| 15 | + public final DataRequest dataRequest; |
| 16 | + |
| 17 | + /** |
| 18 | + * A {@link TeamRequest} object to make calls in which a <code>teamNumber</code> is the primary argument |
| 19 | + */ |
| 20 | + public final TeamRequest teamRequest; |
| 21 | + |
| 22 | + /** |
| 23 | + * An {@link EventRequest} object to make calls in which an <code>eventKey</code> is the primary argument |
| 24 | + */ |
| 25 | + public final EventRequest eventRequest; |
| 26 | + |
| 27 | + /** |
| 28 | + * A {@link DistrictRequest} object to make calls in which a <code>districtKey</code> is the primary argument |
| 29 | + */ |
| 30 | + public final DistrictRequest districtRequest; |
| 31 | + |
| 32 | + /** |
| 33 | + * A {@link MatchRequest} object to make calls in which a <code>matchKey</code> is the primary argument |
| 34 | + */ |
| 35 | + public final MatchRequest matchRequest; |
| 36 | + |
| 37 | + /** |
| 38 | + * Create a TBA object to make API requests |
| 39 | + * |
| 40 | + * @param authKey The Read API Key, generated on your <a href="https://www.thebluealliance.com/account">Account Dashboard</a> on The Blue Alliance |
| 41 | + */ |
| 42 | + public TBA(String authKey) { |
| 43 | + AUTH_KEY = authKey; |
| 44 | + dataRequest = new DataRequest(AUTH_KEY); |
| 45 | + teamRequest = new TeamRequest(dataRequest); |
| 46 | + eventRequest = new EventRequest(dataRequest); |
| 47 | + districtRequest = new DistrictRequest(dataRequest); |
| 48 | + matchRequest = new MatchRequest(dataRequest); |
| 49 | + } |
53 | 50 |
|
54 | 51 | } |
0 commit comments