Class CityResponse


public final class CityResponse extends AbstractCityResponse
This class provides a model for the data returned by the City Plus web service and the City database.
See Also:
  • Constructor Details

    • CityResponse

      public CityResponse(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 CityResponse 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
    • CityResponse

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