Iso3166 Class

Country lookup list to determine the locale for PhoneNumbers, AccountDtos, etc.
(System.Globalization does not contain everything we need)

We follow the standards set by the International Organization for Standardization (ISO) in ISO 3166-1.
See https://www.iso.org/iso-3166-country-codes.html for more information.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public static class Iso3166
Inheritance
Object    Iso3166

Methods

FromAlpha2 Looks up the country represented by the alpha2 parameter.
FromAlpha3 Obtain ISO3166-1 Country based on its Alpha3 code.
FromPhoneCode Looks up the country represents by its phone code
RetrieveIpAddressStatus Retrieves a new IP Address data from https://ipapi.co/ and returns the results. It also checks whether the IP Address is from a blacklisted country.
ToLookup Creates a dictionary based on the Alpha2 as key and the readable name as value. Intended for select dropdowns on front-end

See Also