use crate::proto::{Item, Review};
#[derive(Debug)]
pub struct CdnUrl {
pub filename: String,
pub sha1: String,
pub url: String,
}
#[derive(Debug)]
pub struct DownloadResponse {
pub splits: Vec<CdnUrl>,
pub obbs: Vec<CdnUrl>,
pub base: CdnUrl,
}
#[derive(Debug, Clone, Copy)]
pub enum CategoryType {
Application,
Game,
Family,
}
#[derive(Debug)]
pub struct Category {
pub cat_type: CategoryType,
pub images: Vec<String>,
pub browse_url: String,
pub title: String,
}
#[derive(Debug)]
pub struct SearchResults {
pub next_page: Option<NextSearchPage>,
pub items: Vec<Item>,
}
#[derive(Debug)]
pub struct NextSearchPage(pub(crate) String);
#[derive(Debug)]
pub enum ReviewsFilter {
All,
Newest,
Positive,
Critical,
}
#[derive(Debug)]
pub struct ReviewsResults {
pub next_page: Option<NextReviewsPage>,
pub reviews: Vec<Review>,
}
#[derive(Debug)]
pub struct NextReviewsPage(pub(crate) String);