public class TeamRequest
extends java.lang.Object
| Constructor and Description |
|---|
TeamRequest(DataRequest dataRequest)
Creates a TeamRequest object
|
| Modifier and Type | Method and Description |
|---|---|
Award[] |
getAwards(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}/awards
|
Award[] |
getAwards(int teamNumber,
int year)
Makes API requests with the subdirectory
/team/frc{teamNumber}/awards/{year}
|
Award[] |
getAwards(int teamNumber,
java.lang.String eventKey)
Makes API requests with the subdirectory
/team/frc{teamNumber}/event/{eventKey}/awards
|
District[] |
getDistricts(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}/districts
|
java.lang.String[] |
getEventKeys(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}/events/keys
|
java.lang.String[] |
getEventKeys(int teamNumber,
int year)
Makes API requests with the subdirectory
/team/frc{teamNumber}/events/{year}/keys
|
Event[] |
getEvents(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}/events
|
Event[] |
getEvents(int teamNumber,
int year)
Makes API requests with the subdirectory
/team/frc{teamNumber}/events/{year}
|
TeamEventStatus
|
getEventStatus(int teamNumber,
java.lang.String eventKey)
Makes API requests with the subdirectory
/team/frc{teamNumber}/event/{eventKey}/status
|
Match[] |
getMatches(int teamNumber,
int year)
Makes API requests with the subdirectory
/team/frc{teamNumber}/matches/{year}
|
Match[] |
getMatches(int teamNumber,
java.lang.String eventKey)
Makes API requests with the subdirectory
/team/frc{teamNumber}/event/{eventKey}/matches
|
java.lang.String[] |
getMatchKeys(int teamNumber,
int year)
Makes API requests with the subdirectory
/team/frc{teamNumber}/matches/{year}/keys
|
java.lang.String[] |
getMatchKeys(int teamNumber,
java.lang.String eventKey)
Makes API requests with the subdirectory
/team/frc{teamNumber}/event/{eventKey}/matches/keys
|
Media[] |
getMedia(int teamNumber,
int year)
Makes API requests with the subdirectory
/team/frc{teamNumber}/media/{year}
|
Robot[] |
getRobots(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}/robots
|
SimpleEvent[] |
getSimpleEvents(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}/events/simple
|
SimpleEvent[] |
getSimpleEvents(int teamNumber,
int year)
Makes API requests with the subdirectory
/team/frc{teamNumber}/events/{year}/simple
|
SimpleMatch[] |
getSimpleMatches(int teamNumber,
int year)
Makes API requests with the subdirectory
/team/frc{teamNumber}/matches/{year}/simple
|
SimpleMatch[] |
getSimpleMatches(int teamNumber,
java.lang.String eventKey)
Makes API requests with the subdirectory
/team/frc{teamNumber}/event/{eventKey}/matches/simple
|
SimpleTeam |
getSimpleTeam(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}/simple
|
Media[] |
getSocialMedia(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}/social_media
|
Team |
getTeam(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}
|
int[] |
getYearsParticipated(int teamNumber)
Makes API requests with the subdirectory
/team/frc{teamNumber}/years_participated
|
public TeamRequest(DataRequest dataRequest)
dataRequest - A DataRequest
object with the appropriate auth key
public Team getTeam(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}teamNumber - The FRC team number issued by FIRSTTeam
object referenced by the given team number
java.io.IOExceptionpublic SimpleTeam getSimpleTeam(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/simple
teamNumber - The FRC team number issued by FIRSTSimpleTeam
object referenced by the given team number
java.io.IOExceptionpublic int[] getYearsParticipated(int teamNumber)
throws java.io.IOException
/team/frc{teamNumber}/years_participated
teamNumber - The FRC team number issued by FIRSTjava.io.IOExceptionpublic District[] getDistricts(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/districts
teamNumber - The FRC team number issued by FIRSTDistricts
that the team was part of, for each year
java.io.IOExceptionpublic Robot[] getRobots(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/robots
teamNumber - The FRC team number issued by FIRSTRobots
for each year that a robot name was provided. WIll be null if the team never
named a robot.
java.io.IOExceptionpublic Event[] getEvents(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/events
teamNumber - The FRC team number issued by FIRSTjava.io.IOExceptionpublic Event[] getEvents(int teamNumber, int year) throws java.io.IOException
/team/frc{teamNumber}/events/{year}
teamNumber - The FRC team number issued by FIRSTyear - Competition year (or season). Must be four digitsjava.io.IOExceptionpublic SimpleEvent[] getSimpleEvents(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/events/simple
teamNumber - The FRC team number issued by FIRSTjava.io.IOExceptionpublic SimpleEvent[] getSimpleEvents(int teamNumber, int year) throws java.io.IOException
/team/frc{teamNumber}/events/{year}/simple
teamNumber - The FRC team number issued by FIRSTyear - Competition year (or season). Must be four digitsjava.io.IOExceptionpublic java.lang.String[] getEventKeys(int teamNumber)
throws java.io.IOException
/team/frc{teamNumber}/events/keys
teamNumber - The FRC team number issued by FIRSTjava.io.IOExceptionpublic java.lang.String[] getEventKeys(int teamNumber,
int year)
throws java.io.IOException
/team/frc{teamNumber}/events/{year}/keys
teamNumber - The FRC team number issued by FIRSTyear - Competition year (or season). Must be four digitsjava.io.IOExceptionpublic Match[] getMatches(int teamNumber, java.lang.String eventKey) throws java.io.IOException
/team/frc{teamNumber}/event/{eventKey}/matches
teamNumber - The FRC team number issued by FIRSTeventKey - TBA Event Key, e.g. 2016nytrMatchs
that the given team participated in the given event
java.io.IOExceptionpublic SimpleMatch[] getSimpleMatches(int teamNumber, java.lang.String eventKey) throws java.io.IOException
/team/frc{teamNumber}/event/{eventKey}/matches/simple
teamNumber - The FRC team number issued by FIRSTeventKey - TBA Event Key, e.g. 2016nytrSimpleMatchs
that the given team participated in the given event
java.io.IOExceptionpublic java.lang.String[] getMatchKeys(int teamNumber,
java.lang.String eventKey)
throws java.io.IOException
/team/frc{teamNumber}/event/{eventKey}/matches/keys
teamNumber - The FRC team number issued by FIRSTeventKey - TBA Event Key, e.g. 2016nytrjava.io.IOExceptionpublic Award[] getAwards(int teamNumber, java.lang.String eventKey) throws java.io.IOException
/team/frc{teamNumber}/event/{eventKey}/awards
teamNumber - The FRC team number issued by FIRSTeventKey - TBA Event Key, e.g. 2016nytrAwards
won by the given team at the given event
java.io.IOExceptionpublic TeamEventStatus getEventStatus(int teamNumber, java.lang.String eventKey) throws java.io.IOException
/team/frc{teamNumber}/event/{eventKey}/status
teamNumber - The FRC team number issued by FIRSTeventKey - TBA Event Key, e.g. 2016nytrjava.io.IOExceptionpublic Award[] getAwards(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/awards
teamNumber - The FRC team number issued by FIRSTAwards
that the given team has won
java.io.IOExceptionpublic Award[] getAwards(int teamNumber, int year) throws java.io.IOException
/team/frc{teamNumber}/awards/{year}
teamNumber - The FRC team number issued by FIRSTyear - Competition year (or season). Must be four digitsAwards
that the given team won in the given year
java.io.IOExceptionpublic Match[] getMatches(int teamNumber, int year) throws java.io.IOException
/team/frc{teamNumber}/matches/{year}
teamNumber - The FRC team number issued by FIRSTyear - Competition year (or season). Must be four digitsMatchs
that the given team participated in during the given year
java.io.IOExceptionpublic SimpleMatch[] getSimpleMatches(int teamNumber, int year) throws java.io.IOException
/team/frc{teamNumber}/matches/{year}/simple
teamNumber - The FRC team number issued by FIRSTyear - Competition year (or season). Must be four digitsSimpleMatchs
that the given team participated in during the given year
java.io.IOExceptionpublic java.lang.String[] getMatchKeys(int teamNumber,
int year)
throws java.io.IOException
/team/frc{teamNumber}/matches/{year}/keys
teamNumber - The FRC team number issued by FIRSTyear - Competition year (or season). Must be four digitsjava.io.IOExceptionpublic Media[] getMedia(int teamNumber, int year) throws java.io.IOException
/team/frc{teamNumber}/media/{year}
teamNumber - The FRC team number issued by FIRSTyear - Competition year (or season). Must be four digitsMedia
for the given team and year
java.io.IOExceptionpublic Media[] getSocialMedia(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/social_media
teamNumber - The FRC team number issued by FIRSTMedia
for the given team
java.io.IOException