Event event = Snooker.API().getEvent(eventId);where parameter
eventId
is ID of the tournament.
Match match = Snooker.API().getMatch(eventId, roundId, matchNumber);where parameter
eventId
is ID of the tournament which the match is played;
roundId
is ID of the round of the tournament;
matchNumber
is number of the match in the round.
Player player = Snooker.API().getPlayer(int playerId);where parameter
playerId
is ID of the player.
Events seasonEvents = Snooker.API().getSeasonEvents(season);where parameter
season
is object of class Season
that specify a season or Season.ALL
for all available seasons.
Matches eventMatches = Snooker.API().getEventMatches(eventId);where parameter
eventId
is ID of the tournament.
OngoingMatches matches = Snooker.API().getOngoingMatches();
Matches playerMatches = Snooker.API().getPlayerMatches(playerId, season);where parameter
playerId
is ID of the player
and season
is object of class Season
that specify a season or Season.ALL
for all available seasons.
Players eventPlayers = Snooker.API().getEventPlayers(eventId);where parameter
eventId
is ID of the tournament.
Players players = Snooker.API().getPlayers(season, category);where parameter
season
is object of class Season
that specify a season or Season.ALL
for all available seasons
and category
is object of class PlayerCategory
that specify a category of players (for example, PlayerCategory.PRO
).
Rankings rankings = Snooker.API().getRankings(season, rankingType);where parameter
season
is object of class Season
that specify a season or Season.ALL
for all available seasons
and rankingType
is object of class RankingType
that specify a rating type (for example, RankingType.MoneyRankings
).