mod builder;
mod response;
pub use builder::{GetGames, GetTopGames};
pub use response::GamesResponse;
use crate::Client;
pub trait GamesAPI {
fn get_top_games<'a>(&'a self) -> GetTopGames<'a>;
fn get_games<'a>(&'a self) -> GetGames<'a>;
}
impl GamesAPI for Client {
fn get_top_games<'a>(&'a self) -> GetTopGames<'a> {
GetTopGames::new(self)
}
fn get_games<'a>(&'a self) -> GetGames<'a> {
GetGames::new(self)
}
}