コード例 #1
0
  @Override
  protected MessageListBean getDoInBackgroundNewData() throws WeiboException {

    String id = userBean.getId();
    String screenName = userBean.getScreen_name();

    StatusesTimeLineDao dao = new StatusesTimeLineDao(token, id);

    if (TextUtils.isEmpty(id)) {
      dao.setScreen_name(screenName);
    }

    if (getList().getSize() > 0) {
      dao.setSince_id(getList().getItem(0).getId());
    }
    MessageListBean result = dao.getGSONMsgList();

    MyStatusDBTask.add(result, GlobalContext.getInstance().getCurrentAccountId());

    return result;
  }
コード例 #2
0
 @Override
 protected Object doInBackground(Object... params) {
   getList().addNewData(MyStatusDBTask.get(GlobalContext.getInstance().getCurrentAccountId()));
   return null;
 }