Commit 88523cc7 authored by ivarnm's avatar ivarnm
Browse files

Add getSpecificTournament in QI

parent d05b1c49
......@@ -160,6 +160,15 @@ public class QueryIntermediate {
return tournaments;
}
public static Tournament getSpecificTournament(String tournamentID) throws IOException, NoSuchElementException {
String route = "tournament/specific/" + tournamentID;
String[] response = sendGetRequest(route);
checkStatusCode(response);
Tournament tournament = json.fromJson(Tournament.class, response[1]);
checkObjectNotNull(tournament);
return tournament;
}
public static Tournament joinATournament(String playerId) throws IOException, NoSuchElementException {
String route = "tournament/join/";
Map<String, String> params = new HashMap<>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment