com.socrata.model.SearchResults Maven / Gradle / Ivy
package com.socrata.model;
import com.socrata.model.importer.Dataset;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;
import java.util.List;
/**
* Returns all the search results from a search.
*/
public class SearchResults
{
int count;
String searchType;
List results;
@JsonCreator
public SearchResults(@JsonProperty("count") int count, @JsonProperty("searchType") String searchType, @JsonProperty("results") List results)
{
this.count = count;
this.searchType = searchType;
this.results = results;
}
public int getCount()
{
return count;
}
public String getSearchType()
{
return searchType;
}
public List getResults()
{
return results;
}
}