Class EnterpriseResponse


public final class EnterpriseResponse extends AbstractCityResponse

This class provides a model for the data returned by the GeoIP2 Enterprise database

  • Constructor Details

    • EnterpriseResponse

      public EnterpriseResponse(City city, Continent continent, Country country, Location location, MaxMind maxmind, Postal postal, Country registeredCountry, RepresentedCountry representedCountry, ArrayList<Subdivision> subdivisions, Traits traits)
      Constructs an instance of EnterpriseResponse with the specified parameters.
      Parameters:
      city - city
      continent - continent
      country - country
      location - location
      maxmind - maxmind record for the response
      postal - postal
      registeredCountry - registered country
      representedCountry - represented country
      subdivisions - subdivisions
      traits - traits
    • EnterpriseResponse

      public EnterpriseResponse(EnterpriseResponse response, String ipAddress, Network network, List<String> locales)
      Constructs an instance of EnterpriseResponse with only required 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