コード例 #1
0
  /**
   * @param weibo
   * @param id
   * @return the latest retweet for tweet id with maximum number of Countmax
   * @throws WeiboException
   */
  public ArrayList<Status> getRepostTimeline(Weibo weibo, String id) throws WeiboException {
    int Countmax = 200;

    Paging paging = new Paging();
    paging.setCount(Countmax);
    paging.setSinceId(3363472209835882L);
    ArrayList<Status> statuses = (ArrayList<Status>) weibo.getreposttimeline(id, paging);
    /*
     * for(int i = 2; i<4; i++){ if(statuses.size()==200*(i-1)){
     * paging.setPage(i); statuses.addAll(weibo.getreposttimeline(id,
     * paging)); }else{ break; } }
     */

    return statuses;
  }
コード例 #2
0
  private ArrayList<Status> getUserReposts(Weibo weibo, String id) throws WeiboException {
    // TODO Auto-generated method stub
    int Countmax = 200;

    Paging paging = new Paging();
    paging.setCount(Countmax);
    paging.setSinceId(3363472209835882L);
    ArrayList<Status> statuses = (ArrayList<Status>) weibo.getrepostbyme(id, paging);
    /*
     * for(int i = 2; i<4; i++){ if(statuses.size()==200*(i-1)){
     * paging.setPage(i); statuses.addAll(weibo.getreposttimeline(id,
     * paging)); }else{ break; } }
     */

    return statuses;
  }