pub mod v1;
use std::sync::Arc;
use crate::core::{config::Config, req_option::RequestOption, SDKResult};
use self::v1::*;
pub struct BoardService {
config: Arc<Config>,
pub whiteboard: v1::whiteboard::WhiteboardService,
}
impl BoardService {
pub fn new(config: Arc<Config>) -> Self {
Self {
whiteboard: v1::whiteboard::WhiteboardService::new((*config).clone()),
config,
}
}
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
}
}