Examples of withIds()


Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getComments(long[])
   */
  @Override
  public PagedList<Comment> getComments(long... commentIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_COMMENT);
        String                apiUrl  = builder.withIds(commentIds).buildUrl();

        return unmarshallList(Comment.class, callApiMethod(apiUrl));
  }

  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getAnswers(java.util.Set, long[])
   */
  @Override
  public PagedList<Answer> getAnswers(Set<FilterOption> filterOptions, long... answerIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_ANSWER);
        String                apiUrl  = builder.withIds(answerIds).withFetchOptions(filterOptions).buildUrl();

        return unmarshallList(Answer.class, callApiMethod(apiUrl));
  }

  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

   */
  @Override
  public PagedList<Answer> getAnswersByUsers(Set<FilterOption> filterOptions,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_ANSWERS_BY_USER);
        String                apiUrl  = builder.withIds(userIds).withFetchOptions(filterOptions).buildUrl();

        return unmarshallList(Answer.class, callApiMethod(apiUrl));
  }

  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

   */
  @Override
  public PagedList<Answer> getAnswersByQuestions(Set<FilterOption> filterOptions,
      long... questionIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_ANSWERS_BY_QUESTION);
        String                apiUrl  = builder.withIds(questionIds).withFetchOptions(filterOptions).buildUrl();

        return unmarshallList(Answer.class, callApiMethod(apiUrl));
  }
 
  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

   */
  @Override
  public PagedList<Answer> getAnswersByUsers(Answer.SortOrder sort, Set<FilterOption> filterOptions,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_ANSWERS_BY_USER);
        String                apiUrl  = builder.withIds(userIds).withSort(sort).withFetchOptions(filterOptions).buildUrl();

        return unmarshallList(Answer.class, callApiMethod(apiUrl));
  }
 
  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

   */
  @Override
  public PagedList<Answer> getAnswersByQuestions(Answer.SortOrder sort, Set<FilterOption> filterOptions,
      long... questionIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_ANSWERS_BY_QUESTION);
        String                apiUrl  = builder.withIds(questionIds).withSort(sort).withFetchOptions(filterOptions).buildUrl();

        return unmarshallList(Answer.class, callApiMethod(apiUrl));
  }
 
  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getFavoriteQuestionsByUsers(com.google.code.stackexchange.schema.Paging, long[])
   */
  @Override
  public PagedList<Question> getFavoriteQuestionsByUsers(Paging paging, long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_FAVORITE_QUESTIONS);
        String                apiUrl  = builder.withIds(userIds).withPaging(paging).buildUrl();

        return unmarshallList(Question.class, callApiMethod(apiUrl));
  }

  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

   */
  @Override
  public PagedList<Question> getFavoriteQuestionsByUsers(TimePeriod timePeriod,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_FAVORITE_QUESTIONS);
        String                apiUrl  = builder.withIds(userIds).withTimePeriod(timePeriod).buildUrl();

        return unmarshallList(Question.class, callApiMethod(apiUrl));
  }

  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

   */
  @Override
  public PagedList<Question> getFavoriteQuestionsByUsers(Set<FilterOption> filterOptions,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_FAVORITE_QUESTIONS);
        String                apiUrl  = builder.withIds(userIds).withFetchOptions(filterOptions).buildUrl();

        return unmarshallList(Question.class, callApiMethod(apiUrl));
       
       
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withIds()

  @Override
  public PagedList<Question> getFavoriteQuestionsByUsers(User.FavoriteSortOrder sort,
      Paging paging, TimePeriod timePeriod, Set<FilterOption> filterOptions,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_FAVORITE_QUESTIONS);
        String                apiUrl  = builder.withIds(userIds).withSort(sort).withPaging(paging).withTimePeriod(timePeriod).withFetchOptions(filterOptions).buildUrl();

        return unmarshallList(Question.class, callApiMethod(apiUrl));
       
       
  }
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.