2018-06-16 18:13:24 +02:00
|
|
|
use indexmap::IndexMap;
|
|
|
|
use serde_json::Value;
|
|
|
|
|
2019-09-26 22:39:25 +02:00
|
|
|
use crate::data_source::DataSource;
|
2018-06-16 18:13:24 +02:00
|
|
|
|
|
|
|
pub struct PBDataSource;
|
|
|
|
impl DataSource for PBDataSource {
|
2019-09-30 17:56:03 +02:00
|
|
|
fn get_alias(&self) -> &str {
|
|
|
|
"PB"
|
|
|
|
}
|
|
|
|
|
2018-06-16 18:13:24 +02:00
|
|
|
fn get_champs_with_positions_and_patch(
|
|
|
|
&self,
|
2020-06-28 18:34:31 +02:00
|
|
|
_client: &reqwest::blocking::Client,
|
2018-06-16 18:13:24 +02:00
|
|
|
) -> (IndexMap<String, Vec<String>>, String) {
|
|
|
|
(IndexMap::new(), String::new())
|
|
|
|
}
|
|
|
|
|
2019-09-30 17:56:03 +02:00
|
|
|
fn get_champ_data_with_win_pourcentage(
|
2018-06-16 18:13:24 +02:00
|
|
|
&self,
|
|
|
|
_id: &str,
|
|
|
|
_position: &str,
|
2020-06-28 18:34:31 +02:00
|
|
|
_client: &reqwest::blocking::Client,
|
2019-09-30 17:56:03 +02:00
|
|
|
) -> Option<(Vec<Value>, f64)> {
|
2018-06-16 18:13:24 +02:00
|
|
|
None
|
|
|
|
}
|
|
|
|
}
|