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); }
private void orgsReposList() { UsersClient.getNewInstance().setNetworkListener(this).reposByOrgs(orgs.login, "updated", page); }
private void userReposList() { UsersClient.getNewInstance() .setNetworkListener(this) .userReposList(user.getLogin(), "updated", page); }