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

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


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

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

  /* (non-Javadoc)
 
View Full Code Here


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

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

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

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

  /* (non-Javadoc)
 
View Full Code Here

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

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

  /* (non-Javadoc)
 
View Full Code Here

   */
  @Override
  public PagedList<Comment> getUsersComments(Comment.SortOrder sort, Paging paging,
      TimePeriod timePeriod, long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_COMMENTS_BY_USER);
        String                apiUrl  = builder.withIds(userIds).withSort(sort).withPaging(paging).withTimePeriod(timePeriod).buildUrl();

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

  /* (non-Javadoc)
 
View Full Code Here

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsersCommentsToUser(long, long[])
   */
  @Override
  public PagedList<Comment> getUsersCommentsToUser(long toUserId, long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_COMMENTS_BY_USER_TO_USER);
        String                apiUrl  = builder.withIds(userIds).withField("toid", String.valueOf(toUserId)).buildUrl();

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

  /* (non-Javadoc)
 
View Full Code Here

   */
  @Override
  public PagedList<Comment> getUsersCommentsToUser(long toUserId, Comment.SortOrder sort,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_COMMENTS_BY_USER_TO_USER);
        String                apiUrl  = builder.withIds(userIds).withField("toid", String.valueOf(toUserId)).withSort(sort).buildUrl();

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

  /* (non-Javadoc)
 
View Full Code Here

   */
  @Override
  public PagedList<Comment> getUsersCommentsToUser(long toUserId, TimePeriod timePeriod,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_COMMENTS_BY_USER_TO_USER);
        String                apiUrl  = builder.withIds(userIds).withField("toid", String.valueOf(toUserId)).withTimePeriod(timePeriod).buildUrl();

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

  /* (non-Javadoc)
 
View Full Code Here

   */
  @Override
  public PagedList<Comment> getUsersCommentsToUser(long toUserId, Paging paging,
      long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_COMMENTS_BY_USER_TO_USER);
        String                apiUrl  = builder.withIds(userIds).withField("toid", String.valueOf(toUserId)).withPaging(paging).buildUrl();

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

  /* (non-Javadoc)
 
View Full Code Here

   */
  @Override
  public PagedList<Comment> getUsersCommentsToUser(long toUserId, Comment.SortOrder sort,
      Paging paging, TimePeriod timePeriod, long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_COMMENTS_BY_USER_TO_USER);
        String                apiUrl  = builder.withIds(userIds).withField("toid", String.valueOf(toUserId)).withSort(sort).withPaging(paging).withTimePeriod(timePeriod).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.