Beispiel #1
0
 @Override
 public ArrayList<TypeListVO> getList() {
   HttpTagPO httpTagPO = postHttpBl.getTagList();
   ArrayList<TagPO> tagPOList = httpTagPO.getTags();
   ArrayList<TypeListVO> tagVOList = new ArrayList<>();
   for (TagPO tagPO : tagPOList) {
     TypeListVO tagListVO =
         new TypeListVO(
             tagPO.getId() + "",
             tagPO.getTitle(),
             tagPO.getDescription(),
             tagPO.getPostCount() + "");
     tagVOList.add(tagListVO);
   }
   return tagVOList;
 }
Beispiel #2
0
 @Override
 public ArrayList<PostListVO> getResultList(int page, String tagID) {
   HttpTagPostPO httpTagPostPO = postHttpBl.getTagResult(page, tagID);
   ArrayList<PostPO> posts = httpTagPostPO.getPosts();
   return PostTransformer.getPostList(posts);
 }