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.IOException
public 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.IOException
public int[] getYearsParticipated(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/years_participated
teamNumber
- The FRC team number issued by FIRSTjava.io.IOException
public District[] getDistricts(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/districts
teamNumber
- The FRC team number issued by FIRSTDistrict
s
that the team was part of, for each year
java.io.IOException
public Robot[] getRobots(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/robots
teamNumber
- The FRC team number issued by FIRSTRobot
s
for each year that a robot name was provided. WIll be null if the team never
named a robot.
java.io.IOException
public Event[] getEvents(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/events
teamNumber
- The FRC team number issued by FIRSTjava.io.IOException
public 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.IOException
public SimpleEvent[] getSimpleEvents(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/events/simple
teamNumber
- The FRC team number issued by FIRSTjava.io.IOException
public 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.IOException
public java.lang.String[] getEventKeys(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/events/keys
teamNumber
- The FRC team number issued by FIRSTjava.io.IOException
public 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.IOException
public 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. 2016nytr
Match
s
that the given team participated in the given event
java.io.IOException
public 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. 2016nytr
SimpleMatch
s
that the given team participated in the given event
java.io.IOException
public 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. 2016nytr
java.io.IOException
public 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. 2016nytr
Award
s
won by the given team at the given event
java.io.IOException
public 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. 2016nytr
java.io.IOException
public Award[] getAwards(int teamNumber) throws java.io.IOException
/team/frc{teamNumber}/awards
teamNumber
- The FRC team number issued by FIRSTAward
s
that the given team has won
java.io.IOException
public 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 digitsAward
s
that the given team won in the given year
java.io.IOException
public 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 digitsMatch
s
that the given team participated in during the given year
java.io.IOException
public 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 digitsSimpleMatch
s
that the given team participated in during the given year
java.io.IOException
public 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.IOException
public 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.IOException
public 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