Search in sources :

Example 6 with RiotAccount

use of no.stelar7.api.r4j.pojo.shared.RiotAccount in project L4J8 by stelar7.

the class TestSharedAccount method getByTag.

@Test
@Order(1)
public void getByTag() {
    R4J api = new R4J(SecretFile.CREDS);
    RiotAccount account = api.getAccountAPI().getAccountByTag(RegionShard.EUROPE, "stelar7", "STL7");
    System.out.println(account);
}
Also used : R4J(no.stelar7.api.r4j.impl.R4J)

Example 7 with RiotAccount

use of no.stelar7.api.r4j.pojo.shared.RiotAccount in project L4J8 by stelar7.

the class TestSharedAccount method getByPUUID.

@Test
@Order(2)
public void getByPUUID() {
    R4J api = new R4J(SecretFile.CREDS);
    RiotAccount accountTag = api.getAccountAPI().getAccountByTag(RegionShard.EUROPE, "stelar7", "STL7");
    RiotAccount account = api.getAccountAPI().getAccountByPUUID(RegionShard.EUROPE, accountTag.getPUUID());
    System.out.println(account);
}
Also used : R4J(no.stelar7.api.r4j.impl.R4J)

Aggregations

R4J (no.stelar7.api.r4j.impl.R4J)7 VALMatchAPI (no.stelar7.api.r4j.impl.val.VALMatchAPI)4 RiotAccount (no.stelar7.api.r4j.pojo.shared.RiotAccount)4 FileSystemCacheProvider (no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider)1 URLEndpoint (no.stelar7.api.r4j.basic.constants.api.URLEndpoint)1