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;
|
2021-03-13 23:02:26 +01:00
|
|
|
use crate::ChampInfo;
|
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,
|
2021-03-10 12:22:00 +01:00
|
|
|
_client: &ureq::Agent,
|
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,
|
2021-03-13 23:02:26 +01:00
|
|
|
_champ: &ChampInfo,
|
2018-06-16 18:13:24 +02:00
|
|
|
_position: &str,
|
2021-03-10 12:22:00 +01:00
|
|
|
_client: &ureq::Agent,
|
2019-09-30 17:56:03 +02:00
|
|
|
) -> Option<(Vec<Value>, f64)> {
|
2018-06-16 18:13:24 +02:00
|
|
|
None
|
|
|
|
}
|
|
|
|
}
|