use super::{CameoClient, CameoClientError};
use crate::unified::{media_id::MediaId, models::UnifiedWatchProviders};
impl CameoClient {
pub async fn movie_watch_providers(
&self,
id: &MediaId,
) -> Result<UnifiedWatchProviders, CameoClientError> {
Ok(self
.route(&self.watch, id)?
.movie_watch_providers(id)
.await?)
}
pub async fn tv_watch_providers(
&self,
id: &MediaId,
) -> Result<UnifiedWatchProviders, CameoClientError> {
Ok(self.route(&self.watch, id)?.tv_watch_providers(id).await?)
}
}