pub mod v1;
use crate::core::{config::Config, req_option::RequestOption, SDKResult};
use self::v1::*;
pub struct BoardService {
config: Config,
pub whiteboard: v1::whiteboard::WhiteboardService,
}
impl BoardService {
pub fn new(config: Config) -> Self {
Self {
whiteboard: v1::whiteboard::WhiteboardService::new(config.clone()),
config,
}
}
pub fn new_from_shared(shared: std::sync::Arc<Config>) -> Self {
Self {
whiteboard: v1::whiteboard::WhiteboardService::new(shared.as_ref().clone()),
config: (*shared).clone(),
}
}
pub async fn list_nodes(
&self,
request: ListWhiteboardNodesRequest,
option: Option<RequestOption>,
) -> SDKResult<crate::core::api_resp::BaseResponse<ListWhiteboardNodesResponse>> {
list_whiteboard_nodes(request, &self.config, option).await
}
}