forked from mirror/Riven
1
0
Fork 0

Regen for new RSO changes, optional clash-v1.Player.teamId

RSO endpoints are not available since they use header params.
v/1.x.x
Mingwei Samuel 2021-05-20 14:11:16 -07:00
parent 32082b0a62
commit 0c4e9ec962
3 changed files with 89 additions and 6 deletions

View File

@ -7,7 +7,7 @@
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version e3a10221e77395e8b757d85cecf4413902b9ef10
// Version bbfb64a2ef9111c6610a823da800b0335587831d
//! Automatically generated endpoint handles.
@ -95,6 +95,24 @@ impl RiotApi {
pub fn lol_status_v4(&self) -> LolStatusV4 {
LolStatusV4 { base: self }
}
/// Returns a handle for accessing [LorDeckV1](crate::endpoints::LorDeckV1) endpoints.
/// # Riot Developer API Reference
/// <a href="https://developer.riotgames.com/apis#lor-deck-v1" target="_blank">`lor-deck-v1`</a>
///
/// Note: this method is automatically generated.
#[inline]
pub fn lor_deck_v1(&self) -> LorDeckV1 {
LorDeckV1 { base: self }
}
/// Returns a handle for accessing [LorInventoryV1](crate::endpoints::LorInventoryV1) endpoints.
/// # Riot Developer API Reference
/// <a href="https://developer.riotgames.com/apis#lor-inventory-v1" target="_blank">`lor-inventory-v1`</a>
///
/// Note: this method is automatically generated.
#[inline]
pub fn lor_inventory_v1(&self) -> LorInventoryV1 {
LorInventoryV1 { base: self }
}
/// Returns a handle for accessing [LorMatchV1](crate::endpoints::LorMatchV1) endpoints.
/// # Riot Developer API Reference
/// <a href="https://developer.riotgames.com/apis#lor-match-v1" target="_blank">`lor-match-v1`</a>
@ -668,6 +686,28 @@ impl<'a> LolStatusV4<'a> {
}
/// LorDeckV1 endpoints handle, accessed by calling [`lor_deck_v1()`](crate::RiotApi::lor_deck_v1) on a [`RiotApi`](crate::RiotApi) instance.
/// # Riot Developer API Reference
/// <a href="https://developer.riotgames.com/apis#lor-deck-v1" target="_blank">`lor-deck-v1`</a>
///
/// Note: this struct is automatically generated.
pub struct LorDeckV1<'a> {
base: &'a RiotApi,
}
impl<'a> LorDeckV1<'a> {
}
/// LorInventoryV1 endpoints handle, accessed by calling [`lor_inventory_v1()`](crate::RiotApi::lor_inventory_v1) on a [`RiotApi`](crate::RiotApi) instance.
/// # Riot Developer API Reference
/// <a href="https://developer.riotgames.com/apis#lor-inventory-v1" target="_blank">`lor-inventory-v1`</a>
///
/// Note: this struct is automatically generated.
pub struct LorInventoryV1<'a> {
base: &'a RiotApi,
}
impl<'a> LorInventoryV1<'a> {
}
/// LorMatchV1 endpoints handle, accessed by calling [`lor_match_v1()`](crate::RiotApi::lor_match_v1) on a [`RiotApi`](crate::RiotApi) instance.
/// # Riot Developer API Reference
/// <a href="https://developer.riotgames.com/apis#lor-match-v1" target="_blank">`lor-match-v1`</a>
@ -1440,7 +1480,7 @@ impl<'a> ValMatchV1<'a> {
/// Get recent matches
/// ## Implementation Notes
/// Returns a list of match ids that have completed in the last 10 minutes. NA/LATAM/BR share a match history deployment. As such, recent matches will return a combined list of matches from those three regions. Requests are load balanced so you may see some inconsistencies as matches are added/removed from the list.
/// Returns a list of match ids that have completed in the last 10 minutes for live regions and 12 hours for the esports routing value. NA/LATAM/BR share a match history deployment. As such, recent matches will return a combined list of matches from those three regions. Requests are load balanced so you may see some inconsistencies as matches are added/removed from the list.
/// # Parameters
/// * `region` - Region to query.
/// * `queue`

View File

@ -7,7 +7,7 @@
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version e3a10221e77395e8b757d85cecf4413902b9ef10
// Version bbfb64a2ef9111c6610a823da800b0335587831d
//! Metadata about the Riot API and Riven.
//!

View File

@ -7,7 +7,7 @@
///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/
// Version e3a10221e77395e8b757d85cecf4413902b9ef10
// Version bbfb64a2ef9111c6610a823da800b0335587831d
//! Data transfer structs.
//!
@ -120,7 +120,7 @@ pub mod clash_v1 {
#[serde(rename = "summonerId")]
pub summoner_id: String,
#[serde(rename = "teamId")]
pub team_id: String,
pub team_id: Option<String>,
/// (Legal values: UNSELECTED, FILL, TOP, JUNGLE, MIDDLE, BOTTOM, UTILITY)
#[serde(rename = "position")]
pub position: String,
@ -500,6 +500,49 @@ pub mod lol_status_v4 {
}
}
/// Data structs used by [`LorDeckV1`](crate::endpoints::LorDeckV1).
///
/// Note: this module is automatically generated.
#[allow(dead_code)]
pub mod lor_deck_v1 {
/// Deck data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct Deck {
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "code")]
pub code: String,
}
/// NewDeck data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct NewDeck {
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "code")]
pub code: String,
}
}
/// Data structs used by [`LorInventoryV1`](crate::endpoints::LorInventoryV1).
///
/// Note: this module is automatically generated.
#[allow(dead_code)]
pub mod lor_inventory_v1 {
/// Card data object.
#[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct Card {
#[serde(rename = "code")]
pub code: String,
#[serde(rename = "count")]
pub count: String,
}
}
/// Data structs used by [`LorMatchV1`](crate::endpoints::LorMatchV1).
///
/// Note: this module is automatically generated.
@ -1559,7 +1602,7 @@ pub mod summoner_v4 {
/// ID of the summoner icon associated with the summoner.
#[serde(rename = "profileIconId")]
pub profile_icon_id: i32,
/// Date summoner was last modified specified as epoch milliseconds. The following events will update this timestamp: summoner name change, summoner level change, or profile icon change.
/// Date summoner was last modified specified as epoch milliseconds. The following events will update this timestamp: profile icon change, playing the tutorial or advanced tutorial, finishing a game, summoner name change
#[serde(rename = "revisionDate")]
pub revision_date: i64,
/// Summoner name.