コード例 #1
0
  /** 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();
          }
        });
  }
コード例 #2
0
  /** 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();
          }
        });
  }
コード例 #3
0
  /**
   * 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();
          }
        });
  }