Examples of PagingParameters


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

    requireAuthorization();
    graphApi.post(eventId, "declined", new LinkedMultiValueMap<String, String>());
  }
 
  public PagedList<Event> search(String query) {
    return search(query, new PagingParameters(25, 0, null, null));
  }
View Full Code Here

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

    requireAuthorization();
    return graphApi.fetchConnections(userId, "groups", GroupMembership.class);
  }

  public PagedList<Group> search(String query) {
    return search(query,new PagingParameters(25, 0, null, null));
  }
View Full Code Here

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

  private <T> PagedList<T> pagify(Class<T> type, JsonNode jsonNode) {
    List<T> data = deserializeDataList(jsonNode.get("data"), type);
    if (jsonNode.has("paging")) {
      JsonNode pagingNode = jsonNode.get("paging");
      PagingParameters previousPage = getPagedListParameters(pagingNode, "previous");
      PagingParameters nextPage = getPagedListParameters(pagingNode, "next");
      return new PagedList<T>(data, previousPage, nextPage);
    }
    return new PagedList<T>(data, null, null);
  }
View Full Code Here

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

    String untilString = extractParameterValueFromUrl(pageNode, "until");
    String offsetString = extractParameterValueFromUrl(pageNode, "offset");
    String after = extractEncodedParameterValueFromUrl(pageNode, "after");
    String before = extractEncodedParameterValueFromUrl(pageNode, "before");
   
    return new PagingParameters(
        limitString != null ? Integer.valueOf(limitString) : null,
        offsetString != null ? Integer.valueOf(offsetString) : null,
        sinceString != null ? Long.valueOf(sinceString) : null,
        untilString != null ? Long.valueOf(untilString) : null,
        after, before);
View Full Code Here

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

    this.restTemplate = restTemplate;
  }

  public PagedList<Album> getAlbums() {
    requireAuthorization();
    return getAlbums("me", new PagingParameters(25, 0, null, null));
  }
View Full Code Here

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

    requireAuthorization();
    return getAlbums("me", pagedListParameters);
  }

  public PagedList<Album> getAlbums(String userId) {
    return getAlbums(userId, new PagingParameters(25, 0, null, null));
  }
View Full Code Here

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

    requireAuthorization();
    return graphApi.fetchImage(albumId, "picture", imageType);
  }
 
  public PagedList<Photo> getPhotos(String objectId) {
    return getPhotos(objectId, new PagingParameters(25, 0, null, null));
  }
View Full Code Here

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

    parts.set("message", caption);
    return graphApi.publish(albumId, "photos", parts);
  }
 
  public PagedList<Video> getVideos() {
    return getVideos("me", new PagingParameters(25, 0, null, null));
  }
View Full Code Here

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

  public PagedList<Video> getVideos(PagingParameters pagedListParameters) {
    return getVideos("me", pagedListParameters);
  }

  public PagedList<Video> getVideos(String userId) {
    return getVideos(userId, new PagingParameters(25, 0, null, null));
  }
View Full Code Here

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

    super(isAuthorizedForUser);
    this.graphApi = graphApi;
  }

  public PagedList<Comment> getComments(String objectId) {
    return getComments(objectId, new PagingParameters(25, 0, null, null));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.