![JAR search and dependency download from the Maven repository](/logo.png)
com.maxmind.geoip2.model.CountryResponse 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.db.MaxMindDbConstructor;
import com.maxmind.db.MaxMindDbParameter;
import com.maxmind.db.Network;
import com.maxmind.geoip2.record.*;
import java.net.InetAddress;
import java.util.List;
/**
* This class provides a model for the data returned by the GeoIP2 Precision:
* Country end point.
*
* @see GeoIP2 Web
* Services
*/
public final class CountryResponse extends AbstractCountryResponse {
CountryResponse() {
this(null, null, null, null, null, null);
}
@MaxMindDbConstructor
public CountryResponse(
@JsonProperty("continent") @MaxMindDbParameter(name="continent") Continent continent,
@JsonProperty("country") @MaxMindDbParameter(name="country") Country country,
@JsonProperty("maxmind") @MaxMindDbParameter(name="maxmind") MaxMind maxmind,
@JsonProperty("registered_country") @MaxMindDbParameter(name="registered_country") Country registeredCountry,
@JsonProperty("represented_country") @MaxMindDbParameter(name="represented_country") RepresentedCountry representedCountry,
@JacksonInject("traits") @JsonProperty("traits") @MaxMindDbParameter(name="traits") Traits traits
) {
super(continent, country, maxmind, registeredCountry, representedCountry, traits);
}
public CountryResponse(
CountryResponse response,
String ipAddress,
Network network,
List locales
) {
super(response, ipAddress, network, locales);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy