Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public JSONObject addAlert (int repeats) throws IOException{
- JSONObject json = null;
- for (int r = 0; r < repeats; r++) {
- setStrike(this.strike += 0.0001f);
- json = new JSONObject(new CreateRequest().execute(METHOD_ADD_ALERT, this.collection));
- }
- return json;
- }
- public JSONObject getAllAlerts(String hash) {
- this.collection.clear();
- setHash(hash);
- return new JSONObject(new CreateRequest().execute(METHOD_GET_ALL_ALERTS, this.collection));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement