diff --git a/src/consts/champion.rs b/src/consts/champion.rs
index 6cae740..21bbf8a 100644
--- a/src/consts/champion.rs
+++ b/src/consts/champion.rs
@@ -1,7 +1,7 @@
// This file is automatically generated.
// Do not directly edit.
-// Generated on 2019-10-22T04:47:08.742Z
+// Generated on 2019-10-22T05:40:37.599Z
use std::fmt;
use num_derive;
diff --git a/src/dto.rs b/src/dto.rs
index b6dcf32..7167275 100644
--- a/src/dto.rs
+++ b/src/dto.rs
@@ -1,7 +1,7 @@
// This file is automatically generated.
// Do not directly edit.
-// Generated on 2019-10-22T04:47:08.827Z
+// Generated on 2019-10-22T05:40:37.680Z
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 0c74167e0eaaeb6de1c7e8219fecaabcf8386d1f
diff --git a/src/riot_api/endpoints.rs b/src/endpoints.rs
similarity index 67%
rename from src/riot_api/endpoints.rs
rename to src/endpoints.rs
index 820d5cf..aeb5498 100644
--- a/src/riot_api/endpoints.rs
+++ b/src/endpoints.rs
@@ -1,7 +1,7 @@
// This file is automatically generated.
// Do not directly edit.
-// Generated on 2019-10-22T04:47:08.813Z
+// Generated on 2019-10-22T05:40:37.693Z
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 0c74167e0eaaeb6de1c7e8219fecaabcf8386d1f
@@ -15,20 +15,60 @@ use url::form_urlencoded::Serializer;
use crate::consts::Region;
use crate::riot_api::RiotApi;
-
-// ChampionMasteryV4
impl RiotApi {
+ pub fn champion_mastery_v4(&self) -> ChampionMasteryV4 {
+ ChampionMasteryV4 { base: self }
+ }
+ pub fn champion_v3(&self) -> ChampionV3 {
+ ChampionV3 { base: self }
+ }
+ pub fn league_exp_v4(&self) -> LeagueExpV4 {
+ LeagueExpV4 { base: self }
+ }
+ pub fn league_v4(&self) -> LeagueV4 {
+ LeagueV4 { base: self }
+ }
+ pub fn lol_status_v3(&self) -> LolStatusV3 {
+ LolStatusV3 { base: self }
+ }
+ pub fn match_v4(&self) -> MatchV4 {
+ MatchV4 { base: self }
+ }
+ pub fn spectator_v4(&self) -> SpectatorV4 {
+ SpectatorV4 { base: self }
+ }
+ pub fn summoner_v4(&self) -> SummonerV4 {
+ SummonerV4 { base: self }
+ }
+ pub fn third_party_code_v4(&self) -> ThirdPartyCodeV4 {
+ ThirdPartyCodeV4 { base: self }
+ }
+ pub fn tournament_stub_v4(&self) -> TournamentStubV4 {
+ TournamentStubV4 { base: self }
+ }
+ pub fn tournament_v4(&self) -> TournamentV4 {
+ TournamentV4 { base: self }
+ }
+}
+
+/// ChampionMasteryV4 endpoints. This class is automatically generated.
+/// # Official API Reference
+/// a href="https://developer.riotgames.com/api-methods/#champion-mastery-v4">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 champion_mastery_v4_get_all_champion_masteries<'a>(&'a self, region: Region, encrypted_summoner_id: &str)
+ pub fn get_all_champion_masteries(&self, region: Region, encrypted_summoner_id: &str)
-> impl Future