![JAR search and dependency download from the Maven repository](/logo.png)
com.maxmind.geoip2.model.InsightsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geoip2 Show documentation
Show all versions of geoip2 Show documentation
GeoIP2 webservice client and database reader
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.List;
/**
*
* This class provides a model for the data returned by the GeoIP2 Precision:
* Insights end point.
*
*
* The only difference between the City and Insights model classes is which
* fields in each record may be populated.
*
*
*
* @see GeoIP2 Web
* Services
*
*/
public class InsightsResponse extends AbstractCityResponse {
InsightsResponse() {
this(null, null, null, null, null, null, null, null, null, null);
}
public InsightsResponse(
@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") List subdivisions,
@JacksonInject("traits") @JsonProperty("traits") Traits traits
) {
super(city, continent, country, location, maxmind, postal, registeredCountry,
representedCountry, subdivisions, traits);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy