Search in sources :

Example 1 with ForumItemFlat

use of forpdateam.ru.forpda.api.forum.models.ForumItemFlat in project ForPDA by RadiationX.

the class Forum method transformToList.

public void transformToList(List<ForumItemFlat> list, ForumItemTree rootForum) {
    if (rootForum.getForums() == null)
        return;
    for (ForumItemTree item : rootForum.getForums()) {
        list.add(new ForumItemFlat(item));
        transformToList(list, item);
    }
}
Also used : ForumItemTree(forpdateam.ru.forpda.api.forum.models.ForumItemTree) IForumItemFlat(forpdateam.ru.forpda.api.forum.interfaces.IForumItemFlat) ForumItemFlat(forpdateam.ru.forpda.api.forum.models.ForumItemFlat)

Aggregations

IForumItemFlat (forpdateam.ru.forpda.api.forum.interfaces.IForumItemFlat)1 ForumItemFlat (forpdateam.ru.forpda.api.forum.models.ForumItemFlat)1 ForumItemTree (forpdateam.ru.forpda.api.forum.models.ForumItemTree)1