Examples of withIds()


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

   */
  @Override
  public PagedList<Question> getQuestionsByUsers(User.QuestionSortOrder sort, Range range,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_QUESTIONS_BY_USER);
        String                apiUrl  = builder.withIds(userIds).withSort(sort).withRange(range).buildUrl();

        return unmarshallList(Question.class, callApiMethod(apiUrl));
  }
  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getTaggedQuestions(java.util.List)
View Full Code Here

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

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

        return unmarshallList(Tag.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#getUsers(long[])
   */
  @Override
  public PagedList<User> getUsers(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USER);
        String                apiUrl  = builder.withIds(userIds).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#getUsersMentions(long[])
   */
  @Override
  public PagedList<Comment> getUsersMentions(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USER_MENTIONS);
        String                apiUrl  = builder.withIds(userIds).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#getUsersTimeline(long[])
   */
  @Override
  public PagedList<UserTimeline> getUsersTimeline(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USER_TIMELINE);
        String                apiUrl  = builder.withIds(userIds).buildUrl();

        return unmarshallList(UserTimeline.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#getUsersReputations(long[])
   */
  @Override
  public PagedList<Reputation> getUsersReputations(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USER_REPUTATIONS);
        String                apiUrl  = builder.withIds(userIds).buildUrl();

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

  /* (non-Javadoc)
 
View Full Code Here

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

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

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

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

  /* (non-Javadoc)
 
View Full Code Here

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

   */
  @Override
  public PagedList<Reputation> getUsersReputations(Paging paging,
      TimePeriod timePeriod, long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USER_REPUTATIONS);
        String                apiUrl  = builder.withIds(userIds).withPaging(paging).withTimePeriod(timePeriod).buildUrl();

        return unmarshallList(Reputation.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#getUsersComments(long[])
   */
  @Override
  public PagedList<Comment> getUsersComments(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_COMMENTS_BY_USER);
        String                apiUrl  = builder.withIds(userIds).buildUrl();

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