package com.maxmind.geoip2.model; import com.fasterxml.jackson.annotation.JacksonInject; import com.fasterxml.jackson.annotation.JsonProperty; import com.maxmind.geoip2.record.*; import java.util.ArrayList; /** * <p> * This class provides a model for the data returned by the GeoIP2 Precision: * City end point and the GeoIP2 City database. * </p> * <p> * The only difference between the City and Insights model classes is which * fields in each record may be populated. * </p> * <p> * @see <a href="http://dev.maxmind.com/geoip/geoip2/web-services">GeoIP2 Web * Services</a> * </p> */ public final class CityResponse extends AbstractCityResponse { CityResponse() { this(null, null, null, null, null, null, null, null, null, null); } public CityResponse( @JsonProperty("city") City city, @JsonProperty("continent") Continent continent, @JsonProperty("country") Country country, @JsonProperty("location") Location location, @JsonProperty("maxmind") MaxMind maxmind, @JsonProperty("postal") Postal postal, @JsonProperty("registered_country") Country registeredCountry, @JsonProperty("represented_country") RepresentedCountry representedCountry, @JsonProperty("subdivisions") ArrayList<Subdivision> subdivisions, @JacksonInject("traits") @JsonProperty("traits") Traits traits ) { super(city, continent, country, location, maxmind, postal, registeredCountry, representedCountry, subdivisions, traits); } }