pro.lukasgorny.utils.UrlUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpubg-android Show documentation
Show all versions of jpubg-android Show documentation
Simple API wrapper written in Java for retriving statistics from http://pubgtracker.com API.
This is Android version without Java 8 features to provide full compatibility with Android.
package pro.lukasgorny.utils;
import pro.lukasgorny.settings.Settings;
/**
* Created by Łukasz "Husar" Górny on 2017-06-29.
*/
public class UrlUtils {
public static String prepareNicknameRequestURL(final String nickname) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append(Settings.URL_REQUEST_BY_NICKNAME);
stringBuilder.append(nickname);
return stringBuilder.toString();
}
public static String prepareSteamIDRequestURL(final String steamID) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append(Settings.URL_REQUEST_BY_STEAMID);
stringBuilder.append(steamID);
return stringBuilder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy