use crate::client::Client;
use crate::error::Result;
use crate::types::StatusResponse;
pub struct Status<'a> {
client: &'a Client,
}
impl<'a> Status<'a> {
pub(crate) fn new(client: &'a Client) -> Self {
Self { client }
}
pub async fn get_status(&self) -> Result<StatusResponse> {
self.client.post("/status/get-status", &serde_json::json!({})).await
}
}