use of no.stelar7.api.r4j.impl.lol.builders.league.LeagueBuilder in project L4J8 by stelar7.
the class LeagueTest method testLeagueEntry.
@Test
public void testLeagueEntry() {
String id = new SpectatorBuilder().withPlatform(LeagueShard.EUW1).getFeaturedGames().get(0).getParticipants().get(0).getSummonerName();
Summoner s = new SummonerBuilder().withPlatform(LeagueShard.EUW1).withName(id).get();
List<LeagueEntry> data = new LeagueBuilder().withPlatform(LeagueShard.EUW1).withSummonerId(s.getSummonerId()).getLeagueEntries();
System.out.println(data.size());
}
Aggregations