2018-06-16 18:13:24 +02:00
|
|
|
use indexmap::IndexMap;
|
|
|
|
use serde_json::Value;
|
|
|
|
|
2021-03-14 14:25:37 +01:00
|
|
|
use crate::data_source::{DataSource, Stat};
|
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"
|
|
|
|
}
|
|
|
|
|
2021-03-14 09:49:18 +01:00
|
|
|
fn get_timeout(&self) -> u64 {
|
|
|
|
0
|
|
|
|
}
|
|
|
|
|
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,
|
2021-03-15 23:11:40 +01:00
|
|
|
_positions: &[String],
|
2021-03-10 12:22:00 +01:00
|
|
|
_client: &ureq::Agent,
|
2021-03-15 23:00:20 +01:00
|
|
|
) -> Vec<(String, Vec<Value>, Stat)> {
|
|
|
|
vec![]
|
2018-06-16 18:13:24 +02:00
|
|
|
}
|
|
|
|
}
|