Skip to content
Snippets Groups Projects
Commit f07248e1 authored by ivarnm's avatar ivarnm
Browse files

#69 Add doRoundCheck to QI

parent 3520945f
No related branches found
No related tags found
1 merge request!64Resolve "Add round check method in QI"
......@@ -203,6 +203,18 @@ public class QueryIntermediate {
return points;
}
public static Tournament doRoundCheck(String tournamentId) throws IOException, NoSuchElementException {
String route = "tournament/roundcheck";
Map<String, String> params = new HashMap<>();
params.put("tournamentid", tournamentId);
System.out.println(params);
String[] response = sendPostRequest(route, params);
checkStatusCode(response);
Tournament tournament = json.fromJson(Tournament.class, response[1]);
checkObjectNotNull(tournament);
return null;
}
// ---------------- Highscore methods ----------------
public static List<Highscore> getHighscoresForGame(String gameId) throws IOException, NoSuchElementException {
String route = "highscores/gamescores/" + gameId;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment