Examples of ApiUrlBuilder


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

  /* (non-Javadoc)
   * @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));
  }
View Full Code Here

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

  /* (non-Javadoc)
   * @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));
  }
View Full Code Here

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

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsersComments(com.google.code.stackexchange.schema.Comment.SortOrder, com.google.code.stackexchange.schema.Paging, com.google.code.stackexchange.schema.TimePeriod, long[])
   */
  @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));
  }
View Full Code Here

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

  /* (non-Javadoc)
   * @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));
  }
View Full Code Here

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

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsersCommentsToUser(long, com.google.code.stackexchange.schema.Comment.SortOrder, long[])
   */
  @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));
  }
View Full Code Here

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

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsersCommentsToUser(long, com.google.code.stackexchange.schema.TimePeriod, long[])
   */
  @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));
  }
View Full Code Here

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

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsersCommentsToUser(long, com.google.code.stackexchange.schema.Paging, long[])
   */
  @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));
  }
View Full Code Here

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

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsersCommentsToUser(long, com.google.code.stackexchange.schema.Comment.SortOrder, com.google.code.stackexchange.schema.Paging, com.google.code.stackexchange.schema.TimePeriod, long[])
   */
  @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));
  }
View Full Code Here

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

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

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

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

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getStatistics()
   */
  @Override
  public List<Statistics> getStatistics() {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_STATISTICS);
        String                apiUrl  = builder.buildUrl();

        return unmarshallList(Statistics.class, callApiMethod(apiUrl));
  }
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.