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. 2016nytr
Event
object referenced by the given key
java.io.IOException
public SimpleEvent getSimpleEvent(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/simple
eventKey
- TBA Event Key, e.g. 2016nytr
SimpleEvent
object referenced by the given key
java.io.IOException
public Team[] getTeams(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/teams
eventKey
- TBA Event Key, e.g. 2016nytr
Team
objects that competed in the given event.
java.io.IOException
public SimpleTeam[] getSimpleTeams(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/teams/simple
eventKey
- TBA Event Key, e.g. 2016nytr
SimpleTeam
objects that competed in the given event.
java.io.IOException
public java.lang.String[] getTeamKeys(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/teams/keys
eventKey
- TBA Event Key, e.g. 2016nytr
Team
keys that competed in the given event.
java.io.IOException
public 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.IOException
public SimpleEvent[] getSimpleEvents(int year) throws java.io.IOException
/events/{year}/simple
year
- Competition year (or season). Must be four digits.SimpleEvent
objects that occurred in a given year
java.io.IOException
public java.lang.String[] getEventKeys(int year) throws java.io.IOException
/events/{year}/keys
year
- Competition year (or season). Must be four digits.Event
keys that occurred in a given year
java.io.IOException
public EventDistrictPoints getDistrictPoints(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/district_points
eventKey
- TBA Event Key, e.g. 2016nytr
java.io.IOException
public EliminationAlliance[] getAlliances(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/alliances
eventKey
- TBA Event Key, e.g. 2016nytr
EliminationAlliance
s
for the event
java.io.IOException
public OPRs getOPRs(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/oprs
eventKey
- TBA Event Key, e.g. 2016nytr
OPRs
(includeing OPR, DPR, and CCWM) for the event
java.io.IOException
public EventRankings getRankings(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/rankings
eventKey
- TBA Event Key, e.g. 2016nytr
java.io.IOException
public Match[] getMatches(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/matches
eventKey
- TBA Event Key, e.g. 2016nytr
Match
es
for the event
java.io.IOException
public SimpleMatch[] getSimpleMatches(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/matches/simple
eventKey
- TBA Event Key, e.g. 2016nytr
SimpleMatch
es
for the event
java.io.IOException
public java.lang.String[] getMatchKeys(java.lang.String eventKey) throws java.io.IOException
/event/{eventKey}/matches/keys
eventKey
- TBA Event Key, e.g. 2016nytr
java.io.IOException