474acbebb9c56f2e3f30a7ce2899acf94760728a
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / json / JSONSettings.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.json;
18
19 import com.google.gson.annotations.SerializedName;
20
21 import org.hedgecode.chess.scanner.Settings;
22
23 /**
24  * JSONSettings
25  *
26  * @author Dmitry Samoshin aka gotty
27  */
28 public class JSONSettings implements Settings {
29
30     @SerializedName("tournamentUrl")
31     private String tournamentUrl;
32
33     @SerializedName("tournamentIsMultiPage")
34     private boolean tournamentIsMultiPage;
35
36     @SerializedName("tournamentQueryParams")
37     private String tournamentQueryParams;
38
39     @SerializedName("tournamentGamesUrlRegex")
40     private String tournamentGamesUrlRegex;
41
42     @SerializedName("tournamentQuery")
43     private String tournamentQuery;
44
45     @SerializedName("tournamentQueryUrlRegex")
46     private String tournamentQueryUrlRegex;
47
48     @SerializedName("gameUrl")
49     private String gameUrl;
50
51     @SerializedName("gamePgnUrl")
52     private String gamePgnUrl;
53
54     @SerializedName("gameQueryParams")
55     private String gameQueryParams;
56
57     @SerializedName("gameUrlRegex")
58     private String gameUrlRegex;
59
60     @Override
61     public String getTournamentUrl() {
62         return tournamentUrl;
63     }
64
65     @Override
66     public boolean isTournamentMultiPage() {
67         return tournamentIsMultiPage;
68     }
69
70     @Override
71     public String getTournamentQueryParams() {
72         return tournamentQueryParams;
73     }
74
75     @Override
76     public String getTournamentGamesUrlRegex() {
77         return tournamentGamesUrlRegex;
78     }
79
80     @Override
81     public String getTournamentQuery() {
82         return tournamentQuery;
83     }
84
85     @Override
86     public String getTournamentQueryUrlRegex() {
87         return tournamentQueryUrlRegex;
88     }
89
90     @Override
91     public String getGameUrl() {
92         return gameUrl;
93     }
94
95     @Override
96     public String getGamePgnUrl() {
97         return gamePgnUrl;
98     }
99
100     @Override
101     public String getGameQueryParams() {
102         return gameQueryParams;
103     }
104
105     @Override
106     public String getGameUrlRegex() {
107         return gameUrlRegex;
108     }
109
110 }