Example #1
0
 public List<StatusData> GetRepostStatus(String statusId, int mount) {
   List<Status> status;
   try {
     status = tm.getRepostTimeline(statusId, mount, 1).getStatuses();
     List<StatusData> statusDatas = new ArrayList<StatusData>() {};
     for (Status status2 : status) {
       statusDatas.add(DataConverter.ConvertFrom(status2));
     }
     return statusDatas;
   } catch (WeiboException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return new ArrayList<StatusData>();
 }
Example #2
0
  public List<StatusData> GetUserStatus(String people, int mount) {

    // TODO Auto-generated method stub
    try {
      List<Status> statuss = tm.getUserTimelineByName(people, mount, 1, 1).getStatuses();
      List<StatusData> statusDatas = new ArrayList<StatusData>();
      for (Status status : statuss) {
        statusDatas.add(DataConverter.ConvertFrom(status));
      }
      return statusDatas;

    } catch (WeiboException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    return new ArrayList<StatusData>();
  }