All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.socrata.model.SearchResults Maven / Gradle / Ivy

There is a newer version: 0.10.10
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy