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

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


   */
  @Override
  public PagedList<Question> searchQuestions(List<String> includeTags,
      List<String> excludeTags) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.SEARCH_QUESTIONS);
        String                apiUrl  = builder.withParameters("tagged", includeTags, ";").withParameters("nottagged", excludeTags, ";").buildUrl();

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


   */
  @Override
  public PagedList<Question> searchQuestions(List<String> includeTags,
      List<String> excludeTags, QuestionSortOrder sort, Paging paging) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.SEARCH_QUESTIONS);
        String                apiUrl  = builder.withParameters("tagged", includeTags, ";").withParameters("nottagged", excludeTags, ";").withSort(sort).withPaging(paging).buildUrl();

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

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getTaggedQuestions(java.util.List)
   */
  @Override
  public PagedList<Question> getTaggedQuestions(List<String> tags) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_QUESTIONS);
        String                apiUrl  = builder.withParameters("tagged", tags, ";").buildUrl();

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

  /* (non-Javadoc)
 
View Full Code Here

  @Override
  public PagedList<Question> getTaggedQuestions(List<String> tags,
      Paging paging, TimePeriod timePeriod,
      Set<FilterOption> filterOptions) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_QUESTIONS);
        String                apiUrl  = builder.withParameters("tagged", tags, ";").withPaging(paging).withTimePeriod(timePeriod).withFetchOptions(filterOptions).buildUrl();

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