Package org.encuestame.utils.social

Examples of org.encuestame.utils.social.TumblrBlog


       profile.setLikes(Integer.valueOf(user.get("likes").toString()));
       profile.setDefaultPostFormat(user.get("default_post_format").toString());
       try {
         List<LinkedHashMap<String, Object>> t =   (List<LinkedHashMap<String, Object>>) user.get("blogs");
         for (LinkedHashMap<String, Object> linkedHashMap : t) {
           final TumblrBlog blog = new TumblrBlog();
           blog.setAsk(Boolean.valueOf(linkedHashMap.get("ask").toString()));
           blog.setDescription(linkedHashMap.get("description").toString());
           blog.setFollowers(Integer.valueOf(linkedHashMap.get("followers").toString()));
           blog.setUrl(linkedHashMap.get("url").toString());
           blog.setName(linkedHashMap.get("name").toString());
           blog.setPrimary(Boolean.valueOf(linkedHashMap.get("primary").toString()));
           //blog.setLastUpdated(new Date(linkedHashMap.get("updated").toString()));
           blog.setLastUpdated(Calendar.getInstance().getTime());
           profile.getListBlogs().add(blog);
         }
       }catch(Exception ex){
         ex.printStackTrace();
         log.error(ex);     
View Full Code Here

TOP

Related Classes of org.encuestame.utils.social.TumblrBlog

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.