Package com.lahuca.botsentry.api.data
Class CheckedIP
java.lang.Object
com.lahuca.botsentry.api.data.CheckedIP
Class retrieved by
BotSentryAPI.getCheckedIP(String, Consumer)
.-
Method Summary
Modifier and TypeMethodDescriptionGives the continent of origin of the IP.getIP()
Gives the IP which this class holds information of.Gives the ISO 3166-2 code of the IP.Retrieves the provider/host of the IP.boolean
Gives the unknown location status.
-
Method Details
-
getIP
Gives the IP which this class holds information of.- Returns:
- The IP.
-
isUnknownLocation
public boolean isUnknownLocation()Gives the unknown location status. If true, it is a suspicious IP.- Returns:
- The unknown location status.
-
getIsoCode
Gives the ISO 3166-2 code of the IP. Can be null or empty if not found. For the list of available codes: https://en.wikipedia.org/wiki/ISO_3166-2
- Returns:
- The ISO 3166-2 code of the IP.
-
getContinent
Gives the continent of origin of the IP. Valid values are: "Europe", "Asia", "North America", "South America", "Africa", "Oceania", "Antarctica"- Returns:
- The continent of the IP
-
getProvider
Retrieves the provider/host of the IP.- Returns:
- The provider of the IP
-