Search in sources :

Example 1 with ChampionMasteryBuilder

use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.

the class ChampionMasteryTest method testChampionMasteryScore.

@Test
public void testChampionMasteryScore() {
    Integer score = new ChampionMasteryBuilder().withPlatform(Constants.TEST_PLATFORM[0]).withSummonerId(Constants.TEST_SUMMONER_IDS[0]).getMasteryScore();
    Assert.assertNotNull("no data", score);
}
Also used : ChampionMasteryBuilder(no.stelar7.api.l4j8.impl.builders.championmastery.ChampionMasteryBuilder)

Example 2 with ChampionMasteryBuilder

use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.

the class ChampionMasteryTest method testChampionMastery.

@Test
public void testChampionMastery() {
    ChampionMastery mastery;
    ChampionMasteryBuilder bu = new ChampionMasteryBuilder().withPlatform(Constants.TEST_PLATFORM[0]).withSummonerId(Constants.TEST_SUMMONER_IDS[0]);
    mastery = bu.withChampionId(Constants.TEST_CHAMPION_IDS[0]).getChampionMastery();
    assert mastery != null;
    mastery = bu.withChampionId(Constants.TEST_CHAMPION_IDS[1]).getChampionMastery();
    assert mastery != null;
}
Also used : ChampionMasteryBuilder(no.stelar7.api.l4j8.impl.builders.championmastery.ChampionMasteryBuilder) ChampionMastery(no.stelar7.api.l4j8.pojo.championmastery.ChampionMastery)

Example 3 with ChampionMasteryBuilder

use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.

the class ChampionMasteryTest method testChampionMasteryScore.

@Test
public void testChampionMasteryScore() {
    String id = new SpectatorBuilder().withPlatform(LeagueShard.EUW1).getFeaturedGames().get(0).getParticipants().get(0).getSummonerName();
    Summoner s = new SummonerBuilder().withPlatform(LeagueShard.EUW1).withName(id).get();
    Integer score = new ChampionMasteryBuilder().withPlatform(s.getPlatform()).withSummonerId(s.getSummonerId()).getMasteryScore();
    Assertions.assertNotNull(score, "no data");
}
Also used : Summoner(no.stelar7.api.r4j.pojo.lol.summoner.Summoner) ChampionMasteryBuilder(no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder) SummonerBuilder(no.stelar7.api.r4j.impl.lol.builders.summoner.SummonerBuilder) SpectatorBuilder(no.stelar7.api.r4j.impl.lol.builders.spectator.SpectatorBuilder)

Example 4 with ChampionMasteryBuilder

use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.

the class ChampionMasteryTest method testChampionMasteryAll.

@Test
public void testChampionMasteryAll() {
    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<ChampionMastery> all = new ChampionMasteryBuilder().withPlatform(s.getPlatform()).withSummonerId(s.getSummonerId()).getChampionMasteries();
    assert all != null;
}
Also used : Summoner(no.stelar7.api.r4j.pojo.lol.summoner.Summoner) ChampionMasteryBuilder(no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder) SummonerBuilder(no.stelar7.api.r4j.impl.lol.builders.summoner.SummonerBuilder) ChampionMastery(no.stelar7.api.r4j.pojo.lol.championmastery.ChampionMastery) SpectatorBuilder(no.stelar7.api.r4j.impl.lol.builders.spectator.SpectatorBuilder)

Example 5 with ChampionMasteryBuilder

use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.

the class ChampionMasteryTest method testChampionMasteryTop.

@Test
public void testChampionMasteryTop() {
    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<ChampionMastery> all = new ChampionMasteryBuilder().withPlatform(s.getPlatform()).withSummonerId(s.getSummonerId()).getTopChampions(null);
    assert all != null;
}
Also used : Summoner(no.stelar7.api.r4j.pojo.lol.summoner.Summoner) ChampionMasteryBuilder(no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder) SummonerBuilder(no.stelar7.api.r4j.impl.lol.builders.summoner.SummonerBuilder) ChampionMastery(no.stelar7.api.r4j.pojo.lol.championmastery.ChampionMastery) SpectatorBuilder(no.stelar7.api.r4j.impl.lol.builders.spectator.SpectatorBuilder)

Aggregations

ChampionMasteryBuilder (no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder)4 SpectatorBuilder (no.stelar7.api.r4j.impl.lol.builders.spectator.SpectatorBuilder)4 SummonerBuilder (no.stelar7.api.r4j.impl.lol.builders.summoner.SummonerBuilder)4 Summoner (no.stelar7.api.r4j.pojo.lol.summoner.Summoner)4 ChampionMastery (no.stelar7.api.r4j.pojo.lol.championmastery.ChampionMastery)3 ChampionMasteryBuilder (no.stelar7.api.l4j8.impl.builders.championmastery.ChampionMasteryBuilder)2 ChampionMastery (no.stelar7.api.l4j8.pojo.championmastery.ChampionMastery)1