use of forpdateam.ru.forpda.api.forum.models.ForumItemTree in project ForPDA by RadiationX.
the class ForumFragment method loadData.
@Override
public boolean loadData() {
if (!super.loadData()) {
return false;
}
updateDialog = new AlertDialog.Builder(getContext()).setTitle(R.string.refreshing).setMessage(R.string.loading_data).setCancelable(false).show();
subscribe(RxApi.Forum().getForums(), this::onLoadThemes, new ForumItemTree(), null);
return true;
}
use of forpdateam.ru.forpda.api.forum.models.ForumItemTree in project ForPDA by RadiationX.
the class ForumFragment method recourse.
private void recourse(ForumItemTree rootForum, TreeNode rootNode) {
if (rootForum.getForums() == null)
return;
for (ForumItemTree item : rootForum.getForums()) {
TreeNode child = new TreeNode(item);
recourse(item, child);
rootNode.addChild(child);
}
}
Aggregations