use std::sync::Arc;
use crate::bridge::BridgeCore;
use crate::matrix::MatrixAppservice;
pub struct MatrixEventHandlerImpl {
matrix_client: Arc<MatrixAppservice>,
bridge: Option<Arc<BridgeCore>>,
}
impl MatrixEventHandlerImpl {
pub fn new(matrix_client: Arc<MatrixAppservice>) -> Self {
Self {
matrix_client,
bridge: None,
}
}
pub fn set_bridge(&mut self, bridge: Arc<BridgeCore>) {
self.bridge = Some(bridge);
}
}