[LIB-13] Method scanUrl implementation for several scanners
[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("tournamentJsonUrlRegex")
43     private String tournamentJsonUrlRegex;
44
45     @SerializedName("tournamentNameRegex")
46     private String tournamentNameRegex;
47
48     @SerializedName("tournamentQuery")
49     private String tournamentQuery;
50
51     @SerializedName("tournamentQueryUrlRegex")
52     private String tournamentQueryUrlRegex;
53
54     @SerializedName("gameUrl")
55     private String gameUrl;
56
57     @SerializedName("gamePgnUrl")
58     private String gamePgnUrl;
59
60     @SerializedName("gameQueryParams")
61     private String gameQueryParams;
62
63     @SerializedName("gameUrlRegex")
64     private String gameUrlRegex;
65
66     @SerializedName("gameJsonUrlRegex")
67     private String gameJsonUrlRegex;
68
69     @SerializedName("gameIdRegex")
70     private String gameIdRegex;
71
72     @Override
73     public String getTournamentUrl() {
74         return tournamentUrl;
75     }
76
77     @Override
78     public boolean isTournamentMultiPage() {
79         return tournamentIsMultiPage;
80     }
81
82     @Override
83     public String getTournamentQueryParams() {
84         return tournamentQueryParams;
85     }
86
87     @Override
88     public String getTournamentGamesUrlRegex() {
89         return tournamentGamesUrlRegex;
90     }
91
92     @Override
93     public String getTournamentJsonUrlRegex() {
94         return tournamentJsonUrlRegex;
95     }
96
97     @Override
98     public String getTournamentNameRegex() {
99         return tournamentNameRegex;
100     }
101
102     @Override
103     public String getTournamentQuery() {
104         return tournamentQuery;
105     }
106
107     @Override
108     public String getTournamentQueryUrlRegex() {
109         return tournamentQueryUrlRegex;
110     }
111
112     @Override
113     public String getGameUrl() {
114         return gameUrl;
115     }
116
117     @Override
118     public String getGamePgnUrl() {
119         return gamePgnUrl;
120     }
121
122     @Override
123     public String getGameQueryParams() {
124         return gameQueryParams;
125     }
126
127     @Override
128     public String getGameUrlRegex() {
129         return gameUrlRegex;
130     }
131
132     @Override
133     public String getGameJsonUrlRegex() {
134         return gameJsonUrlRegex;
135     }
136
137     @Override
138     public String getGameIdRegex() {
139         return gameIdRegex;
140     }
141
142 }