public class DistrictRequest
extends java.lang.Object
| Constructor and Description |
|---|
DistrictRequest(DataRequest tba)
Creates a DistrictRequest object
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getEventKeys(java.lang.String districtKey)
Makes API requests with the subdirectory
/district/{districtKey}/events/keys
|
Event[] |
getEvents(java.lang.String districtKey)
Makes API requests with the subdirectory
/district/{districtKey}/events
|
DistrictRanking[]
|
getRankings(java.lang.String districtKey)
Makes API requests with the subdirectory
/district/{districtKey}/rankings
|
SimpleEvent[] |
getSimpleEvents(java.lang.String districtKey)
Makes API requests with the subdirectory
/district/{districtKey}/events/simple
|
SimpleTeam[] |
getSimpleTeams(java.lang.String districtKey)
Makes API requests with the subdirectory
/district/{districtKey}/teams/simple
|
java.lang.String[] |
getTeamKeys(java.lang.String districtKey)
Makes API requests with the subdirectory
/district/{districtKey}/teams/keys
|
Team[] |
getTeams(java.lang.String districtKey)
Makes API requests with the subdirectory
/district/{districtKey}/teams
|
public DistrictRequest(DataRequest tba)
tba - A DataRequest
object with the appropriate auth key
public Team[] getTeams(java.lang.String districtKey) throws java.io.IOException
/district/{districtKey}/teams
districtKey - TBA District Key, e.g. 2016fimTeam
objects in the given district
java.io.IOExceptionpublic SimpleTeam[] getSimpleTeams(java.lang.String districtKey) throws java.io.IOException
/district/{districtKey}/teams/simple
districtKey - TBA District Key, e.g. 2016fimSimpleTeam
objects in the given district
java.io.IOExceptionpublic java.lang.String[] getTeamKeys(java.lang.String districtKey)
throws java.io.IOException
/district/{districtKey}/teams/keys
districtKey - TBA District Key, e.g. 2016fimjava.io.IOExceptionpublic DistrictRanking[] getRankings(java.lang.String districtKey) throws java.io.IOException
/district/{districtKey}/rankings
districtKey - TBA District Key, e.g. 2016fimDistrictRankings
for the given district
java.io.IOExceptionpublic Event[] getEvents(java.lang.String districtKey) throws java.io.IOException
/district/{districtKey}/events
districtKey - TBA District Key, e.g. 2016fimjava.io.IOExceptionpublic SimpleEvent[] getSimpleEvents(java.lang.String districtKey) throws java.io.IOException
/district/{districtKey}/events/simple
districtKey - TBA District Key, e.g. 2016fimjava.io.IOExceptionpublic java.lang.String[] getEventKeys(java.lang.String districtKey)
throws java.io.IOException
/district/{districtKey}/events/keys
districtKey - TBA District Key, e.g. 2016fimjava.io.IOException