Package com.lahuca.botsentry.api.data
Class CheckedIP
- java.lang.Object
 - 
- com.lahuca.botsentry.api.data.CheckedIP
 
 
- 
public class CheckedIP extends java.lang.ObjectClass retrieved byBotSentryAPI.getCheckedIP(String, Consumer). 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContinent()Gives the continent of origin of the IP.java.lang.StringgetIP()Gives the IP which this class holds information of.java.lang.StringgetIsoCode()Gives the ISO 3166-2 code of the IP.java.lang.StringgetProvider()Retrieves the provider/host of the IP.booleanisUnknownLocation()Gives the unknown location status. 
 - 
 
- 
- 
Method Detail
- 
getIP
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String getProvider()
Retrieves the provider/host of the IP.- Returns:
 - The provider of the IP
 
 
 - 
 
 -