use crate::core::{DeviceResponse, IntoBody, Result};
platform_service! {
LoteriasService
}
impl LoteriasService {
pub async fn resultado(
&self,
sorteio: &str,
concurso: u64,
body: impl IntoBody,
) -> Result<DeviceResponse> {
let path = format!("loterias/{sorteio}/{concurso}");
Ok(DeviceResponse(self.base.post(&path, body).await?))
}
pub async fn latest(&self, sorteio: &str, body: impl IntoBody) -> Result<DeviceResponse> {
let path = format!("loterias/{sorteio}/latest");
Ok(DeviceResponse(self.base.post(&path, body).await?))
}
}