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

Commit 25d3d6d

Browse files
authoredMar 13, 2018
Merge pull request #3 from OlympicCode/dev
Merge me daddy
·
v1.3-betav1.1-beta
2 parents f4ac684 + 46d895d commit 25d3d6d

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed
 

‎src/main/java/net/olympiccode/vhackos/api/entities/impl/BruteForceImpl.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,13 @@ public boolean remove() {
4242
}
4343
return false;
4444
}
45+
46+
public boolean retry() {
47+
JSONObject obj = Route.Tasks.REMOVE_BRUTE.compile(api, "10005", String.valueOf(id)).getResponse().getJSON();
48+
if (obj.optInt("bruteretry", 0) == 1) {
49+
api.getTaskManager().reloadTasks();
50+
return true;
51+
}
52+
return false;
53+
}
4554
}

‎src/main/java/net/olympiccode/vhackos/api/network/BruteForce.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ public interface BruteForce {
1414
long getEndTimestamp();
1515
long getId();
1616
BruteForceState getState();
17+
boolean retry();
1718
}

‎src/main/java/net/olympiccode/vhackos/api/requests/Requester.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public OkHttpClient getHttpClient() {
4949
public Response getResponse(Route.CompiledRoute route) {
5050
if (lastRequest >= System.currentTimeMillis() - 1000) {
5151
try {
52-
Thread.sleep(100);
52+
Thread.sleep(200);
5353
} catch (InterruptedException e) {
5454
e.printStackTrace();
5555
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package net.olympiccode.vhackos.api;
22

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

0 commit comments

Comments
 (0)
This repository has been archived.