Search in sources :

Example 6 with Realm

use of no.stelar7.api.r4j.pojo.lol.staticdata.realm.Realm in project L4J8 by stelar7.

the class ImageAPI method buildImageURL.

private String buildImageURL(String version, String path, String file) {
    Realm realm = DDragonAPI.getInstance().getRealm();
    String cdn = realm.getCDN();
    String versionString = version != null ? version : realm.getV();
    String preReplace = cdn + Constants.SEPARATOR + versionString + Constants.SEPARATOR + path + Constants.SEPARATOR + file;
    return preReplace.replace(" ", "%20");
}
Also used : Realm(no.stelar7.api.r4j.pojo.lol.staticdata.realm.Realm)

Aggregations

Realm (no.stelar7.api.l4j8.pojo.staticdata.realm.Realm)3 Realm (no.stelar7.api.r4j.pojo.lol.staticdata.realm.Realm)3 FileSystemCacheProvider (no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)1 FileSystemCacheProvider (no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider)1