[LIB-13] Add function to Scanner API
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / regex / RegexParams.java
index f54243d..bd2779a 100644 (file)
@@ -43,6 +43,13 @@ public final class RegexParams {
         this.gameId = gameId;
     }
 
+    public RegexParams(String gameId, String tournamentId, boolean withTournament) {
+        this.gameId = gameId;
+        if (withTournament) {
+            this.tournamentId = tournamentId;
+        }
+    }
+
     public RegexParams(String query, boolean isUrlEncode) {
         this.query = query;
         this.isUrlEncode = isUrlEncode;