private void getOrganizationInfo() {
    UsersClient.getNewInstance()
        .setNetworkListener(
            new RetrofitNetworkAbs.NetworkListener<Organization>() {

              @Override
              public void onOK(Organization ts) {
                orgs = ts;
                getRefreshHandler().sendEmptyMessage(END_UPDATE);
              }

              @Override
              public void onError(String Message) {
                MessageUtils.showErrorMessage(OrganizationDetailActivity.this, Message);
                getRefreshHandler().sendEmptyMessage(END_ERROR);
              }
            })
        .orgs(orgs.login);
  }
示例#2
0
 private void orgsReposList() {
   UsersClient.getNewInstance().setNetworkListener(this).reposByOrgs(orgs.login, "updated", page);
 }
示例#3
0
 private void userReposList() {
   UsersClient.getNewInstance()
       .setNetworkListener(this)
       .userReposList(user.getLogin(), "updated", page);
 }