[LIB-13] Add new scanner settings
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / json / JSONSettings.java
index ba7b4c0..474acbe 100644 (file)
@@ -33,6 +33,9 @@ public class JSONSettings implements Settings {
     @SerializedName("tournamentIsMultiPage")
     private boolean tournamentIsMultiPage;
 
+    @SerializedName("tournamentQueryParams")
+    private String tournamentQueryParams;
+
     @SerializedName("tournamentGamesUrlRegex")
     private String tournamentGamesUrlRegex;
 
@@ -48,6 +51,12 @@ public class JSONSettings implements Settings {
     @SerializedName("gamePgnUrl")
     private String gamePgnUrl;
 
+    @SerializedName("gameQueryParams")
+    private String gameQueryParams;
+
+    @SerializedName("gameUrlRegex")
+    private String gameUrlRegex;
+
     @Override
     public String getTournamentUrl() {
         return tournamentUrl;
@@ -59,6 +68,11 @@ public class JSONSettings implements Settings {
     }
 
     @Override
+    public String getTournamentQueryParams() {
+        return tournamentQueryParams;
+    }
+
+    @Override
     public String getTournamentGamesUrlRegex() {
         return tournamentGamesUrlRegex;
     }
@@ -83,4 +97,14 @@ public class JSONSettings implements Settings {
         return gamePgnUrl;
     }
 
+    @Override
+    public String getGameQueryParams() {
+        return gameQueryParams;
+    }
+
+    @Override
+    public String getGameUrlRegex() {
+        return gameUrlRegex;
+    }
+
 }