use crate::error::MisarDevError;
use crate::transport::Transport;
use reqwest::Method;
use serde_json::Value;
#[derive(Debug, Clone, Copy)]
pub struct GithubResource<'a> {
pub(crate) t: &'a Transport,
}
impl GithubResource<'_> {
pub async fn disconnect(self) -> Result<Value, MisarDevError> {
self.t.request(Method::DELETE, "/github/connection", "", None).await
}
pub async fn get_connection(self) -> Result<Value, MisarDevError> {
self.t.request(Method::GET, "/github/connection", "", None).await
}
}