/** Watches the current user */ public void unwatch() { pbh.showProgressDialog("Unwatching ..."); Request req = ApiFactory.createUnWatch(authorId); AndroidRequestWrapper arw = new AndroidRequestWrapper(requesthandler, req); arw.exec( new DataCall() { public void call() { justHideProgress(); } }); }
/** Sets a Favorite for the currently Selected Image */ public void setFavorite() { pbh.showProgressDialog("Setting favorite"); Request req = ApiFactory.createAddFav(pageID); AndroidRequestWrapper arw = new AndroidRequestWrapper(requesthandler, req); arw.exec( new DataCall() { public void call() { justHideProgress(); } }); }
/** * Sets the number of stars on a submission that the user wants to set * * @param stars The number of stars to set (1-5) */ public void setRating(int stars) { pbh.showProgressDialog("Rating " + stars + " stars"); Request req = ApiFactory.createSetStars(pageID, stars); AndroidRequestWrapper arw = new AndroidRequestWrapper(requesthandler, req); arw.exec( new DataCall() { public void call() { justHideProgress(); } }); }