#![allow(
clippy::too_many_arguments,
clippy::wildcard_imports,
clippy::doc_markdown
)]
use crate::client::AccountClient;
use crate::error::Error;
use crate::generated::routes;
#[allow(unused_imports)]
use crate::generated::types::*;
#[derive(Debug, Clone, Copy)]
pub struct MessageBoardsService<'a> {
client: &'a AccountClient,
}
impl<'a> MessageBoardsService<'a> {
pub(crate) fn new(client: &'a AccountClient) -> Self {
Self { client }
}
pub fn client(&self) -> &'a AccountClient {
self.client
}
pub async fn get(&self, board_id: i64) -> Result<GetMessageBoardResponseContent, Error> {
let operation = self
.client
.operation(&routes::GET_MESSAGE_BOARD, &[&board_id]);
self.client.send(operation).await
}
}