Package com.lahuca.botsentry.api.data
Class CheckedIP
- java.lang.Object
-
- com.lahuca.botsentry.api.data.CheckedIP
-
public class CheckedIP extends Object
Class retrieved byBotSentryAPI.getCheckedIP(String, Consumer)
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIP()
Gives the IP which this class holds information of.String
getIsoCode()
Gives the ISO 3166-2 code of the IP.boolean
isUnknownLocation()
Gives the unknown location status.
-
-
-
Method Detail
-
getIP
public 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 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.
-
-