public final class ApiFactory
extends java.lang.Object
RiotApi interfaces. Use the associated ApiFactory.Builder
to call into specific versions if needed. newDefaultFactory(ApiKey) is the easiest
way to get ApiFactory and RiotApi instances.| Modifier and Type | Class and Description |
|---|---|
static class |
ApiFactory.Builder
Used to create
ApiFactory instances pointed at specific versions. |
public static com.google.gson.Gson getGson()
Gson to be used for all deserializations. This is a custom built
Gson instance, new instances of Gson may not properly deserialize
responses.public static ApiFactory newDefaultFactory(ApiKey apiKey)
apiKey - API key that this factory will use to create interface connectionsApiFactory for the given API key to access all newest
LoL API versionspublic RiotApi.Champion newChampionInterface(Region region, boolean autoRateControl)
public RiotApi.ChampionMastery newChampionMasteryInterface(Region region, boolean autoRateControl)
public RiotApi.CurrentGame newCurrentGameInterface(Region region, boolean autoRateControl)
public RiotApi.FeaturedGames newFeaturedGamesInterface(Region region, boolean autoRateControl)
public RiotApi.RecentGames newRecentGamesInterface(Region region, boolean autoRateControl)
public RiotApi.League newLeagueInterface(Region region, boolean autoRateControl)
public RiotApi.StaticData newStaticDataInterface(Region region, boolean autoRateControl)
public RiotApi.Stats newStatsInterface(Region region, boolean autoRateControl)
public RiotApi.LolStatus newStatusInterface(Region region, boolean autoRateControl)
public RiotApi.Match newMatchInterface(Region region, boolean autoRateControl)
public RiotApi.MatchList newMatchListInterface(Region region, boolean autoRateControl)
public RiotApi.Summoner newSummonerInterface(Region region, boolean autoRateControl)
public RiotApi.Team newTeamInterface(Region region, boolean autoRateControl)