public class EventRequest
extends java.lang.Object
| Constructor and Description |
|---|
EventRequest(DataRequest tba)
Creates an EventRequest object
|
| Modifier and Type | Method and Description |
|---|---|
EliminationAlliance[]
|
getAlliances(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/alliances
|
Award[] |
getAwards(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/awards
|
EventDistrictPoints
|
getDistrictPoints(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/district_points
|
Event |
getEvent(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey} |
java.lang.String[] |
getEventKeys(int year)
Makes API requests with the subdirectory
/events/{year}/keys
|
Event[] |
getEvents(int year)
Makes API requests with the subdirectory
/events/{year} |
Match[] |
getMatches(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/matches
|
java.lang.String[] |
getMatchKeys(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/matches/keys
|
OPRs |
getOPRs(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/oprs
|
EventRankings |
getRankings(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/rankings
|
SimpleEvent |
getSimpleEvent(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/simple
|
SimpleEvent[] |
getSimpleEvents(int year)
Makes API requests with the subdirectory
/events/{year}/simple
|
SimpleMatch[] |
getSimpleMatches(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/matches/simple
|
SimpleTeam[] |
getSimpleTeams(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/teams/simple
|
java.lang.String[] |
getTeamKeys(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/teams/keys
|
Team[] |
getTeams(java.lang.String eventKey)
Makes API requests with the subdirectory
/event/{eventKey}/teams
|
public EventRequest(DataRequest tba)
tba - A DataRequest
object with the appropriate auth key
public Event getEvent(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}eventKey - TBA Event Key, e.g. 2016nytrEvent
object referenced by the given key
java.io.IOExceptionpublic SimpleEvent getSimpleEvent(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/simple
eventKey - TBA Event Key, e.g. 2016nytrSimpleEvent
object referenced by the given key
java.io.IOExceptionpublic Team[] getTeams(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/teams
eventKey - TBA Event Key, e.g. 2016nytrTeam
objects that competed in the given event.
java.io.IOExceptionpublic SimpleTeam[] getSimpleTeams(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/teams/simple
eventKey - TBA Event Key, e.g. 2016nytrSimpleTeam
objects that competed in the given event.
java.io.IOExceptionpublic java.lang.String[] getTeamKeys(java.lang.String eventKey)
throws java.io.IOException
/event/{eventKey}/teams/keys
eventKey - TBA Event Key, e.g. 2016nytrTeam
keys that competed in the given event.
java.io.IOExceptionpublic Event[] getEvents(int year) throws java.io.IOException
/events/{year}
year - Competition year (or season). Must be four digits.Event
objects that occurred in a given year
java.io.IOExceptionpublic SimpleEvent[] getSimpleEvents(int year) throws java.io.IOException
/events/{year}/simpleyear - Competition year (or season). Must be four digits.SimpleEvent
objects that occurred in a given year
java.io.IOExceptionpublic java.lang.String[] getEventKeys(int year)
throws java.io.IOException
/events/{year}/keysyear - Competition year (or season). Must be four digits.Event
keys that occurred in a given year
java.io.IOExceptionpublic EventDistrictPoints getDistrictPoints(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/district_points
eventKey - TBA Event Key, e.g. 2016nytrjava.io.IOExceptionpublic EliminationAlliance[] getAlliances(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/alliances
eventKey - TBA Event Key, e.g. 2016nytrEliminationAlliances
for the event
java.io.IOExceptionpublic OPRs getOPRs(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/oprseventKey - TBA Event Key, e.g. 2016nytrOPRs
(includeing OPR, DPR, and CCWM) for the event
java.io.IOExceptionpublic EventRankings getRankings(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/rankings
eventKey - TBA Event Key, e.g. 2016nytrjava.io.IOExceptionpublic Match[] getMatches(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/matches
eventKey - TBA Event Key, e.g. 2016nytrMatches
for the event
java.io.IOExceptionpublic SimpleMatch[] getSimpleMatches(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/matches/simple
eventKey - TBA Event Key, e.g. 2016nytrSimpleMatches
for the event
java.io.IOExceptionpublic java.lang.String[] getMatchKeys(java.lang.String eventKey)
throws java.io.IOException
/event/{eventKey}/matches/keys
eventKey - TBA Event Key, e.g. 2016nytrjava.io.IOException