[LIB-13] Locale resource settings
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / portal / Chess24Scanner.java
1 /*
2  * Copyright (c) 2019-2020. Developed by Hedgecode.
3  *
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
7  *
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package org.hedgecode.chess.scanner.portal;
18
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;
23
24 import static org.hedgecode.chess.scanner.ScannerConstants.*;
25
26 /**
27  * Chess24Scanner
28  *
29  * @author Dmitry Samoshin aka gotty
30  */
31 public class Chess24Scanner extends AbstractSettingsScanner implements Scanner {
32
33     private static final String SETTINGS_FILENAME = "chess24.settings";
34
35     @Override
36     protected String getResourceName() {
37         return SETTINGS_FILENAME;
38     }
39
40     @Override
41     public PGNTournament scanTournament(String tournamentId) throws ScannerException {
42         throw new ScannerException(
43                 "scanner.portal.under.development", DOMAIN_CHESS24
44         );
45     }
46
47     @Override
48     public PGNTournament findTournament(String tournamentName) throws ScannerException {
49         throw new ScannerException(
50                 "scanner.portal.under.development", DOMAIN_CHESS24
51         );
52     }
53
54     @Override
55     public PGNGame scanGame(String gameId) throws ScannerException {
56         return scanGame(gameId, null);
57     }
58
59     @Override
60     public PGNGame scanGame(String gameId, String tournamentId) throws ScannerException {
61         throw new ScannerException(
62                 "scanner.portal.under.development", DOMAIN_CHESS24
63         );
64     }
65
66     @Override
67     public PGNGame scanUrl(String gameUrl) throws ScannerException {
68         throw new ScannerException(
69                 "scanner.portal.under.development", DOMAIN_CHESS24
70         );
71     }
72
73 }