MaxMind.GeoIP2 by MaxMind.GeoIP2

<PackageReference Include="MaxMind.GeoIP2" Version="2.8.0" />

 AbstractCountryResponse

public abstract class AbstractCountryResponse : AbstractResponse
Abstract class for country-level response.
public Continent Continent { get; }

Gets the continent for the requested IP address.

public Country Country { get; }

Gets the country for the requested IP address. This object represents the country where MaxMind believes the end user is located

public MaxMind MaxMind { get; }

Gets the MaxMind record containing data related to your account

public Country RegisteredCountry { get; }

Registered country record for the requested IP address. This record represents the country where the ISP has registered a given IP block and may differ from the user's country.

Represented country record for the requested IP address. The represented country is used for things like military bases or embassies. It is only present when the represented country differs from the country.

public Traits Traits { get; }

Gets the traits for the requested IP address.

Initializes a new instance of the AbstractCountryResponse class.

protected AbstractCountryResponse(Continent continent = null, Country country = null, MaxMind maxMind = null, Country registeredCountry = null, RepresentedCountry representedCountry = null, Traits traits = null)

Initializes a new instance of the AbstractCountryResponse class.