public class SummonerEntity extends Entity
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Checks that this SummonerEntity is from the same region and has the same summoner ID as OTHER.
|
CompletableFuture<String> |
getAccountIdAsync() |
String |
getAccountIdEnc() |
List<ChampionMastery> |
getChampionMasteries() |
CompletableFuture<List<ChampionMastery>> |
getChampionMasteriesAsync() |
CurrentGameInfo |
getCurrentGameInfo() |
CompletableFuture<CurrentGameInfo> |
getCurrentGameInfoAsync() |
List<LeaguePosition> |
getLeaguePositions() |
CompletableFuture<List<LeaguePosition>> |
getLeaguePositionsAsync() |
Matchlist |
getMatchQuery()
Queries matches with the parameters set by
setMatchQuery*** methods. |
CompletableFuture<Matchlist> |
getMatchQueryAsync()
Queries matches with the parameters set by
setMatchQuery*** methods. |
List<MatchEntity> |
getMatchQueryEntities()
Queries matches with the parameters set by
setMatchQuery*** methods. |
CompletableFuture<List<MatchEntity>> |
getMatchQueryEntitiesAsync()
Queries matches with the parameters set by
setMatchQuery*** methods. |
String |
getStandardizedName() |
CompletableFuture<String> |
getStandardizedNameAsync() |
CompletableFuture<String> |
getSummonerIdAsync() |
String |
getSummonerIdEnc() |
Summoner |
getSummonerInfo() |
CompletableFuture<Summoner> |
getSummonerInfoAsync() |
int |
hashCode()
Returns a hashed-sized version of this SummonerEntitiy's summoner ID with the summoner region.
|
boolean |
isMatchQueryDirty()
Checks if the query is dirty.
|
boolean |
loadedAccountId() |
boolean |
loadedChampionMasteries() |
boolean |
loadedCurrentGameInfo() |
boolean |
loadedLeaguePositions() |
boolean |
loadedMatchQuery() |
boolean |
loadedSummonerId() |
boolean |
loadedSummonerInfo() |
void |
resetChampionMasteries() |
void |
resetCurrentGameInfo() |
void |
resetLeaguePositions() |
void |
resetMatchQuery()
Removes all query restrictions and marks the match query dirty.
|
void |
resetSummonerInfo() |
boolean |
setMatchQueryAll(List<Integer> queues,
Long beginTime,
Long endTime,
List<Integer> champions,
List<Integer> seasons,
Integer beginIndex,
Integer endIndex)
Method for setting all query parameters at once.
|
boolean |
setMatchQueryChampions(List<Integer> champions)
Sets the champions for a match query.
|
boolean |
setMatchQueryIndexRange(Integer beginIndex,
Integer endIndex)
Sets the begin and end indices for a match query.
|
boolean |
setMatchQueryQueues(List<Integer> queues)
Sets the queues parameter for a match query.
|
boolean |
setMatchQuerySeasons(List<Integer> seasons)
Sets the seasons for a match query.
|
boolean |
setMatchQueryTimeRange(Long beginTime,
Long endTime)
Sets the begin and end time for a match query.
|
public boolean loadedSummonerId()
public CompletableFuture<String> getSummonerIdAsync()
public String getSummonerIdEnc()
public boolean loadedAccountId()
public CompletableFuture<String> getAccountIdAsync()
public String getAccountIdEnc()
public CompletableFuture<String> getStandardizedNameAsync()
public String getStandardizedName()
public boolean loadedSummonerInfo()
public CompletableFuture<Summoner> getSummonerInfoAsync()
public Summoner getSummonerInfo()
public void resetSummonerInfo()
public boolean loadedChampionMasteries()
public CompletableFuture<List<ChampionMastery>> getChampionMasteriesAsync()
public List<ChampionMastery> getChampionMasteries()
public void resetChampionMasteries()
public boolean loadedLeaguePositions()
public CompletableFuture<List<LeaguePosition>> getLeaguePositionsAsync()
public List<LeaguePosition> getLeaguePositions()
public void resetLeaguePositions()
public boolean loadedCurrentGameInfo()
public CompletableFuture<CurrentGameInfo> getCurrentGameInfoAsync()
public CurrentGameInfo getCurrentGameInfo()
public void resetCurrentGameInfo()
public boolean isMatchQueryDirty()
getMatchQuery()
or
getMatchQueryEntities()
will return immediately.public void resetMatchQuery()
public boolean setMatchQueryAll(List<Integer> queues, Long beginTime, Long endTime, List<Integer> champions, List<Integer> seasons, Integer beginIndex, Integer endIndex)
queues
- beginTime
- endTime
- champions
- seasons
- beginIndex
- endIndex
- public boolean setMatchQueryQueues(List<Integer> queues)
queues
- Queue encId list, or null to remove.public boolean setMatchQueryTimeRange(Long beginTime, Long endTime)
setMatchQueryTimeRange(null, null)
will remove the time restriction.beginTime
- Begin time in epoch milliseconds, or null to remove.endTime
- End time in epoch milliseconds, or null to remove.IllegalArgumentException
- If beginTime is greater than endTime.public boolean setMatchQueryChampions(List<Integer> champions)
champions
- Champions that summoner played in queried matches, or null to remove.public boolean setMatchQuerySeasons(List<Integer> seasons)
seasons
- Seasons to return matches from.public boolean setMatchQueryIndexRange(Integer beginIndex, Integer endIndex)
setMatchQueryIndexRange(null, null)
will remove the index restriction.beginIndex
- Begin index, or null to remove.endIndex
- End index, or null to remove.IllegalArgumentException
- If beginIndex is greater than endIndex.public boolean loadedMatchQuery()
public CompletableFuture<Matchlist> getMatchQueryAsync()
setMatchQuery***
methods. Only sends a new request if the
query is marked dirty (parameters have been updated).public Matchlist getMatchQuery()
setMatchQuery***
methods. Only sends a new request if the
query is marked dirty (parameters have been updated).public CompletableFuture<List<MatchEntity>> getMatchQueryEntitiesAsync()
setMatchQuery***
methods. Only sends a new request if the
query is marked dirty (parameters have been updated).EntityApi.getMatch(com.mingweisamuel.zyra.enums.Region, long, java.lang.String)
.public List<MatchEntity> getMatchQueryEntities()
setMatchQuery***
methods. Only sends a new request if the
query is marked dirty (parameters have been updated).EntityApi.getMatch(com.mingweisamuel.zyra.enums.Region, long, java.lang.String)
.public boolean equals(Object other)
Copyright © 2019. All rights reserved.