Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3 from OlympicCode/dev
Browse files Browse the repository at this point in the history
Merge me daddy
  • Loading branch information
itsfolf authored Mar 13, 2018
2 parents f4ac684 + 46d895d commit 25d3d6d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,13 @@ public boolean remove() {
}
return false;
}

public boolean retry() {
JSONObject obj = Route.Tasks.REMOVE_BRUTE.compile(api, "10005", String.valueOf(id)).getResponse().getJSON();
if (obj.optInt("bruteretry", 0) == 1) {
api.getTaskManager().reloadTasks();
return true;
}
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ public interface BruteForce {
long getEndTimestamp();
long getId();
BruteForceState getState();
boolean retry();
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public OkHttpClient getHttpClient() {
public Response getResponse(Route.CompiledRoute route) {
if (lastRequest >= System.currentTimeMillis() - 1000) {
try {
Thread.sleep(100);
Thread.sleep(200);
} catch (InterruptedException e) {
e.printStackTrace();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/olympiccode/vhackos/api/vHackOSInfo.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.olympiccode.vhackos.api;

public class vHackOSInfo {
private static final int REST_VERSION = 8;
private static final int REST_VERSION = 10;
public static final String API_PREFIX = String.format("https://api.vhack.cc/mobile/%d/", REST_VERSION);
}

0 comments on commit 25d3d6d

Please sign in to comment.