| Constructor and Description |
|---|
JPubgImpl(String apiKey) |
JPubgImpl(String apiKey,
int connectionTimeout) |
| Modifier and Type | Method and Description |
|---|---|
String |
getByNickname(String nickname)
Retrieves player specified by nickname data from the PUBGTracker API
and returns it in JSON String format.
|
Player |
getByNickname(String nickname,
FilterCriteria criteria)
Retrieves player specified by nickname data from the PUBGTracker API
and filters it by specified criteria.
|
String |
getBySteamID(String steamID)
Retrieves player specified by steamID data from the PUBGTracker API
and returns it in JSON String format.
|
Player |
getBySteamID(String steamID,
FilterCriteria criteria)
Retrieves player specified by nickname data from the PUBGTracker API
and filters it by specified criteria.
|
Stat |
getPlayerMatchStatByStatName(Player player,
PUBGStat stat)
Filters stat by name from specified players matches from the latest season.
|
public JPubgImpl(String apiKey)
public JPubgImpl(String apiKey, int connectionTimeout)
public String getByNickname(@Nonnull String nickname) throws IOException, BadResponseCodeException
JPubggetByNickname in interface JPubgnickname - nickname of the playerIOException - When there are input/output stream related problemsBadResponseCodeException - When server returns other code than 200 OKpublic Player getByNickname(@Nonnull String nickname, FilterCriteria criteria) throws IOException, BadResponseCodeException
JPubggetByNickname in interface JPubgnickname - nickname of the playercriteria - filtering criteriaIOException - When there are input/output stream related problemsBadResponseCodeException - When server returns other code than 200 OKpublic String getBySteamID(@Nonnull String steamID) throws IOException, BadResponseCodeException
JPubggetBySteamID in interface JPubgsteamID - steamID of the playerIOException - When there are input/output stream related problemsBadResponseCodeException - When server returns other code than 200 OKpublic Player getBySteamID(@Nonnull String steamID, FilterCriteria criteria) throws IOException, BadResponseCodeException
JPubggetBySteamID in interface JPubgsteamID - steamID of the playercriteria - filtering criteriaIOException - When there are input/output stream related problemsBadResponseCodeException - When server returns other code than 200 OKpublic Stat getPlayerMatchStatByStatName(@Nonnull Player player, @Nonnull PUBGStat stat)
JPubggetPlayerMatchStatByStatName in interface JPubgplayer - steamID of the playerstat - specifies what stat you want to be filteredCopyright © 2017. All rights reserved.