}
@Override
- public PGNTournament getTournament(String tournamentId) throws ChessHogScannerException {
+ public PGNTournament scanTournament(String tournamentId) throws ChessHogScannerException {
PGNTournament tournament = new PGNTournament(tournamentId);
assignTournamentGames(tournament);
return tournament;
}
@Override
- public PGNGame getGame(String gameId) throws ChessHogScannerException {
+ public PGNGame scanGame(String gameId) throws ChessHogScannerException {
String pgn = request(
assignUrl(gameId)
);
}
@Override
- public PGNGame getGame(String gameId, String tournamentId) throws ChessHogScannerException {
- return getGame(gameId);
+ public PGNGame scanGame(String gameId, String tournamentId) throws ChessHogScannerException {
+ return scanGame(gameId);
+ }
+
+ @Override
+ public PGNGame scanUrl(String gameUrl) throws ChessHogScannerException {
+ return null;
}
private void assignTournamentGames(PGNTournament tournament) throws ChessHogScannerException {