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