Example #1
0
  private void tryToShowMetionUser() {
    if (mTeamMemberList == null || mTeamMemberList.isEmpty()) {
      OSChinaApi.getTeamMemberList(
          mTeam.getId(),
          new AsyncHttpResponseHandler() {

            @Override
            public void onSuccess(int arg0, Header[] arg1, byte[] arg2) {
              // TODO Auto-generated method stub
              TeamMemberList memberList = XmlUtils.toBean(TeamMemberList.class, arg2);

              if (memberList != null) {
                mTeamMemberList = memberList.getList();
                showMetionUser();
              } else {
                AppContext.showToast("获取团队成员失败");
              }
            }

            @Override
            public void onFailure(int arg0, Header[] arg1, byte[] arg2, Throwable arg3) {
              // TODO Auto-generated method stub
              AppContext.showToast("获取团队成员失败");
            }

            @Override
            public void onStart() {
              // TODO Auto-generated method stub
              super.onStart();
              showWaitDialog("正在获取团队成员...");
            }

            @Override
            public void onFinish() {
              // TODO Auto-generated method stub
              super.onFinish();
              hideWaitDialog();
            }
          });
    } else {
      showMetionUser();
    }
  }
Example #2
0
 @Override
 protected void sendRequestData() {
   OSChinaApi.getEventList(mCurrentPage, mCatalog, mHandler);
 }