Package org.springframework.social.facebook.api

Examples of org.springframework.social.facebook.api.PagingParameters


    JsonNode responseNode = restTemplate.getForObject(uri, JsonNode.class);
    return deserializeList(responseNode, null, Post.class);
  }
 
  public PagedList<Post> getCheckins() {
    return getCheckins(new PagingParameters(25, 0, null, null));
  }
View Full Code Here


    for (Iterator<JsonNode> iterator = dataNode.iterator(); iterator.hasNext();) {
      posts.add(deserializePost(postType, type, (ObjectNode) iterator.next()));
    }
    if (jsonNode.has("paging")) {
      JsonNode pagingNode = jsonNode.get("paging");
      PagingParameters previousPage = getPagedListParameters(pagingNode, "previous");
      PagingParameters nextPage = getPagedListParameters(pagingNode, "next");
      return new PagedList<T>(posts, previousPage, nextPage);
    }
   
    return new PagedList<T>(posts, null, null);
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.facebook.api.PagingParameters

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.