// This file is automatically generated.
// Do not directly edit.
// Generated on 2019-10-22T06:59:44.598Z
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 0c74167e0eaaeb6de1c7e8219fecaabcf8386d1f
use std::future::Future;
use std::vec::Vec;
use reqwest;
use url::form_urlencoded::Serializer;
use crate::consts::Region;
use crate::riot_api::RiotApi;
impl RiotApi {
/// Handle for ChampionMasteryV4 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#champion-mastery-v4
#[inline]
pub fn champion_mastery_v4(&self) -> ChampionMasteryV4 {
ChampionMasteryV4 { base: self }
}
/// Handle for ChampionV3 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#champion-v3
#[inline]
pub fn champion_v3(&self) -> ChampionV3 {
ChampionV3 { base: self }
}
/// Handle for LeagueExpV4 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#league-exp-v4
#[inline]
pub fn league_exp_v4(&self) -> LeagueExpV4 {
LeagueExpV4 { base: self }
}
/// Handle for LeagueV4 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#league-v4
#[inline]
pub fn league_v4(&self) -> LeagueV4 {
LeagueV4 { base: self }
}
/// Handle for LolStatusV3 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#lol-status-v3
#[inline]
pub fn lol_status_v3(&self) -> LolStatusV3 {
LolStatusV3 { base: self }
}
/// Handle for MatchV4 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#match-v4
#[inline]
pub fn match_v4(&self) -> MatchV4 {
MatchV4 { base: self }
}
/// Handle for SpectatorV4 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#spectator-v4
#[inline]
pub fn spectator_v4(&self) -> SpectatorV4 {
SpectatorV4 { base: self }
}
/// Handle for SummonerV4 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#summoner-v4
#[inline]
pub fn summoner_v4(&self) -> SummonerV4 {
SummonerV4 { base: self }
}
/// Handle for ThirdPartyCodeV4 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#third-party-code-v4
#[inline]
pub fn third_party_code_v4(&self) -> ThirdPartyCodeV4 {
ThirdPartyCodeV4 { base: self }
}
/// Handle for TournamentStubV4 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#tournament-stub-v4
#[inline]
pub fn tournament_stub_v4(&self) -> TournamentStubV4 {
TournamentStubV4 { base: self }
}
/// Handle for TournamentV4 endpoints. This method is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#tournament-v4
#[inline]
pub fn tournament_v4(&self) -> TournamentV4 {
TournamentV4 { base: self }
}
}
/// ChampionMasteryV4 endpoints. This struct is automatically generated.
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#champion-mastery-v4
pub struct ChampionMasteryV4<'a> {
base: &'a RiotApi,
}
impl<'a> ChampionMasteryV4<'a> {
/// Get all champion mastery entries sorted by number of champion points descending,
/// # Official API Reference
/// https://developer.riotgames.com/api-methods/#champion-mastery-v4/GET_getAllChampionMasteries
/// # Parameters
/// * `region` - Region to query.
/// * `encryptedSummonerId` - Summoner ID associated with the player
pub fn get_all_champion_masteries(&self, region: Region, encrypted_summoner_id: &str)
-> impl Future