CGGItemSets/src/pb_data_source.rs

35 lines
728 B
Rust
Raw Normal View History

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 {
2021-03-16 09:12:30 +01:00
fn init(&self, _client: &ureq::Agent) {}
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,
2021-03-16 10:53:16 +01:00
) -> (IndexMap<u32, Vec<String>>, String) {
2018-06-16 18:13:24 +02:00
(IndexMap::new(), String::new())
}
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
}
}