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

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


  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsersTimeline(com.google.code.stackexchange.schema.TimePeriod, long[])
   */
  @Override
  public PagedList<UserTimeline> getUsersTimeline(TimePeriod timePeriod, long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USER_TIMELINE);
        String                apiUrl  = builder.withIds(userIds).withTimePeriod(timePeriod).buildUrl();

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

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsers(com.google.code.stackexchange.schema.Paging)
   */
  @Override
  public PagedList<User> getUsers(Paging paging) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USERS);
        String                apiUrl  = builder.withPaging(paging).buildUrl();

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

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsers(java.lang.String)
   */
  @Override
  public PagedList<User> getUsers(String filter) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USERS);
        String                apiUrl  = builder.withParameter("filter", filter).buildUrl();

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

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsers(java.lang.String, com.google.code.stackexchange.schema.User.SortOrder, com.google.code.stackexchange.schema.Paging)
   */
  @Override
  public PagedList<User> getUsers(String filter, User.SortOrder sort, Paging paging) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USERS);
        String                apiUrl  = builder.withParameter("filter", filter).withSort(sort).withPaging(paging).buildUrl();

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

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

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

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

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

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

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

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

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

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

        return unmarshallList(Answer.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.