Package com.jeck.microblogging.shared

Examples of com.jeck.microblogging.shared.Blog


      List<Blog> blogs=weibo.getAllWeibo(para,page,feature);
      return blogs;
    }else{
      //work for test
      List<Blog> datas= new ArrayList<Blog>();
      Blog b = new Blog();
      b.setAuthor("jeck");
      b.setOriginalPic("http://ww2.sinaimg.cn/bmiddle/515a7464jw1duv99pzvucj.jpg");
      b.setText("test");
      b.setDate(new Date());
      datas.add(b);
      return datas;
    }
  }
View Full Code Here


      StatusWapper status = tm.getHomeTimeline(0,
          BlogFeature.getIntValue(feature), paging);
      if (null != status) {
        List<Blog> blogs = new ArrayList<Blog>();
        for (Status statu : status.getStatuses()) {
          Blog blog = new Blog();
          blog.setAuthor(statu.getUser().getName());
          blog.setDate(statu.getCreatedAt());
          blog.setText(statu.getText());
          blog.setId(Long.parseLong(statu.getId()));
          blog.setBmiddlePic(statu.getBmiddlePic());
          blog.setCommentsCount(statu.getCommentsCount());
          blog.setOriginalPic(statu.getOriginalPic());
          blog.setRepostsCount(statu.getRepostsCount());
          blog.setThumbnailPic(statu.getThumbnailPic());
          setSrcBlog(statu, blog);
          blogs.add(blog);
        }
        return blogs;
      }
View Full Code Here

  }

  private void setSrcBlog(Status parent, Blog blog) {
    if (null != parent && parent.getRetweetedStatus() != null) {
      Status statu = parent.getRetweetedStatus();
      Blog src = new Blog();
      if (statu.getUser() != null)
        src.setAuthor(statu.getUser().getName());
      src.setDate(statu.getCreatedAt());
      src.setText(statu.getText());
      src.setId(Long.parseLong(statu.getId()));
      src.setBmiddlePic(statu.getBmiddlePic());
      src.setCommentsCount(statu.getCommentsCount());
      src.setOriginalPic(statu.getOriginalPic());
      src.setRepostsCount(statu.getRepostsCount());
      src.setThumbnailPic(statu.getThumbnailPic());
      blog.setSrcBlog(src);
      setSrcBlog(statu, src);
    }
  }
View Full Code Here

TOP

Related Classes of com.jeck.microblogging.shared.Blog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.