Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. public JSONObject addAlert (int repeats) throws IOException{
  2.         JSONObject json = null;
  3.  
  4.         for (int r = 0; r < repeats; r++) {
  5.             setStrike(this.strike += 0.0001f);
  6.  
  7.             json = new JSONObject(new CreateRequest().execute(METHOD_ADD_ALERT, this.collection));
  8.         }
  9.  
  10.         return json;
  11.     }
  12.  
  13.     public JSONObject getAllAlerts(String hash) {
  14.         this.collection.clear();
  15.         setHash(hash);
  16.        
  17.         return new JSONObject(new CreateRequest().execute(METHOD_GET_ALL_ALERTS, this.collection));
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement