Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public JSONObject deleteAllAlerts(String hash) {
- int[] array = getAlertsId(hash);
- JSONObject jsonObject = new JSONObject();
- for (int i : array) {
- setPriceAlertId(i);
- try {
- Response response = new CreateRequest().execute(METHOD_DELETE_ALERT, this.collection);
- this.json = new JSONObject(response.body().string());
- } catch (IOException e) {
- e.printStackTrace();
- }
- jsonObject.put("alert_id=" + String.valueOf(i), this.json);
- }
- return this.json = jsonObject;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement