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.json;
19 import com.google.gson.annotations.SerializedName;
21 import org.hedgecode.chess.scanner.Settings;
26 * @author Dmitry Samoshin aka gotty
28 public class JSONSettings implements Settings {
30 @SerializedName("tournamentUrl")
31 private String tournamentUrl;
33 @SerializedName("tournamentIsMultiPage")
34 private boolean tournamentIsMultiPage;
36 @SerializedName("tournamentQueryParams")
37 private String tournamentQueryParams;
39 @SerializedName("tournamentGamesUrlRegex")
40 private String tournamentGamesUrlRegex;
42 @SerializedName("tournamentJsonUrlRegex")
43 private String tournamentJsonUrlRegex;
45 @SerializedName("tournamentNameRegex")
46 private String tournamentNameRegex;
48 @SerializedName("tournamentQuery")
49 private String tournamentQuery;
51 @SerializedName("tournamentQueryUrlRegex")
52 private String tournamentQueryUrlRegex;
54 @SerializedName("gameUrl")
55 private String gameUrl;
57 @SerializedName("gamePgnUrl")
58 private String gamePgnUrl;
60 @SerializedName("gameQueryParams")
61 private String gameQueryParams;
63 @SerializedName("gameUrlRegex")
64 private String gameUrlRegex;
66 @SerializedName("gameJsonUrlRegex")
67 private String gameJsonUrlRegex;
69 @SerializedName("gameIdRegex")
70 private String gameIdRegex;
73 public String getTournamentUrl() {
78 public boolean isTournamentMultiPage() {
79 return tournamentIsMultiPage;
83 public String getTournamentQueryParams() {
84 return tournamentQueryParams;
88 public String getTournamentGamesUrlRegex() {
89 return tournamentGamesUrlRegex;
93 public String getTournamentJsonUrlRegex() {
94 return tournamentJsonUrlRegex;
98 public String getTournamentNameRegex() {
99 return tournamentNameRegex;
103 public String getTournamentQuery() {
104 return tournamentQuery;
108 public String getTournamentQueryUrlRegex() {
109 return tournamentQueryUrlRegex;
113 public String getGameUrl() {
118 public String getGamePgnUrl() {
123 public String getGameQueryParams() {
124 return gameQueryParams;
128 public String getGameUrlRegex() {
133 public String getGameJsonUrlRegex() {
134 return gameJsonUrlRegex;
138 public String getGameIdRegex() {