Examples of withIds()


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

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

        return unmarshallList(Revision.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#getRevisionsForPosts(com.google.code.stackexchange.schema.TimePeriod, long[])
   */
  @Override
  public PagedList<Revision> getRevisionsForPosts(TimePeriod timePeriod, long... postIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_REVISIONS_FOR_POST);
        String                apiUrl  = builder.withIds(postIds).withTimePeriod(timePeriod).buildUrl();

        return unmarshallList(Revision.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#getBadgesRecipients(long[])
   */
  @Override
  public PagedList<User> getBadgesRecipients(long... badgeIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_BADGE_RECIPIENTS);
        String                apiUrl  = builder.withIds(badgeIds).buildUrl();

        return unmarshallList(User.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#getBadgesRecipients(com.google.code.stackexchange.schema.Paging, long[])
   */
  @Override
  public PagedList<User> getBadgesRecipients(Paging paging, long... badgeIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_BADGE_RECIPIENTS);
        String                apiUrl  = builder.withIds(badgeIds).withPaging(paging).buildUrl();

        return unmarshallList(User.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,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_FAVORITE_QUESTIONS);
        String                apiUrl  = builder.withIds(userIds).withSort(sort).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(User.FavoriteSortOrder sort, Range range,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_FAVORITE_QUESTIONS);
        String                apiUrl  = builder.withIds(userIds).withSort(sort).withRange(range).buildUrl();

        return unmarshallList(Question.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#getQuestions(long[])
   */
  @Override
  public PagedList<Question> getQuestions(long... questionIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_QUESTION);
        String                apiUrl  = builder.withIds(questionIds).buildUrl();

        return unmarshallList(Question.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#getQuestionsTimeline(long[])
   */
  @Override
  public PagedList<PostTimeline> getQuestionsTimeline(long... questionIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_QUESTION_TIMELINE);
        String                apiUrl  = builder.withIds(questionIds).buildUrl();

        return unmarshallList(PostTimeline.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#getQuestionsByUsers(long[])
   */
  @Override
  public PagedList<Question> getQuestionsByUsers(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_QUESTIONS_BY_USER);
        String                apiUrl  = builder.withIds(userIds).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> getQuestionsByUsers(User.QuestionSortOrder sort,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_QUESTIONS_BY_USER);
        String                apiUrl  = builder.withIds(userIds).withSort(sort).buildUrl();

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

  /* (non-Javadoc)
 
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.