2 * Copyright (c) 2019-2020. Developed by Hedgecode.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.hedgecode.chess.scanner.portal;
19 import org.hedgecode.chess.scanner.Scanner;
20 import org.hedgecode.chess.scanner.ScannerException;
21 import org.hedgecode.chess.scanner.entity.PGNGame;
22 import org.hedgecode.chess.scanner.entity.PGNTournament;
27 * @author Dmitry Samoshin aka gotty
29 public class Chess24Scanner extends AbstractSettingsScanner implements Scanner {
31 private static final String SETTINGS_FILENAME = "chess24.settings";
34 protected String getResourceName() {
35 return SETTINGS_FILENAME;
39 public PGNTournament scanTournament(String tournamentId) throws ScannerException {
40 throw new ScannerException(
41 "The scanner functional of portal chess24.com is under development!"
46 public PGNTournament findTournament(String tournamentName) throws ScannerException {
47 throw new ScannerException(
48 "The scanner functional of portal chess24.com is under development!"
53 public PGNGame scanGame(String gameId) throws ScannerException {
54 return scanGame(gameId, null);
58 public PGNGame scanGame(String gameId, String tournamentId) throws ScannerException {
59 throw new ScannerException(
60 "The scanner functional of portal chess24.com is under development!"
65 public PGNGame scanUrl(String gameUrl) throws ScannerException {
66 throw new ScannerException(
67 "The scanner functional of portal chess24.com is under development!"