Class CountryResponse


public final class CountryResponse extends AbstractCountryResponse
This class provides a model for the data returned by the Country web service and the Country database.
See Also:
  • Constructor Details

    • CountryResponse

      public CountryResponse(Continent continent, Country country, MaxMind maxmind, Country registeredCountry, RepresentedCountry representedCountry, Traits traits)
      Constructs an instance of CountryResponse with the specified parameters.
      Parameters:
      continent - the continent
      country - the country
      maxmind - the MaxMind record
      registeredCountry - the registered country
      representedCountry - the represented country
      traits - the traits
    • CountryResponse

      public CountryResponse(CountryResponse response, String ipAddress, Network network, List<String> locales)
      Constructs an instance of CountryResponse with the specified parameters.
      Parameters:
      response - the response
      ipAddress - the IP address that the data in the model is for.
      network - the network associated with the record.
      locales - the locales