Package com.google.code.stackexchange.client.provider.url

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder


  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getAnswersByQuestions(com.google.code.stackexchange.schema.Answer.SortOrder, long[])
   */
  @Override
  public PagedList<Answer> getAnswersByQuestions(Answer.SortOrder sort, long... questionIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_ANSWERS_BY_QUESTION);
        String                apiUrl  = builder.withIds(questionIds).withSort(sort).buildUrl();

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


  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackExchangeApiClient#getAnswersByQuestions(com.google.code.stackexchange.schema.Answer.SortOrder, com.google.code.stackexchange.schema.Range, long[])
   */
  @Override
  public PagedList<Answer> getAnswersByQuestions(Answer.SortOrder sort, Range range, long... questionIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_ANSWERS_BY_QUESTION);
        String                apiUrl  = builder.withIds(questionIds).withSort(sort).withRange(range).buildUrl();

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

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getBadges()
   */
  @Override
  public PagedList<Badge> getBadges() {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_BADGES);
        String                apiUrl  = builder.buildUrl();

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

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getBadgesByName()
   */
  @Override
  public PagedList<Badge> getBadgesByName() {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_BADGES_BY_NAME);
        String                apiUrl  = builder.buildUrl();

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

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getBadgesByTags()
   */
  @Override
  public PagedList<Badge> getBadgesByTags() {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_BADGES_BY_TAGS);
        String                apiUrl  = builder.buildUrl();

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

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getBadgesForUsers(long[])
   */
  @Override
  public PagedList<Badge> getBadgesForUsers(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_BADGES_FOR_USER);
        String                apiUrl  = builder.withIds(userIds).buildUrl();

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

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

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

TOP

Related Classes of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

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.