matrix-bridge-teams 0.1.0

A bridge between Matrix and Microsoft Teams written in Rust
pub mod appservice;
pub mod event_handler;
pub mod event_processor;
pub mod message;
pub mod room;
pub mod user;

use std::sync::Arc;

use anyhow::Result;

use crate::bridge::BridgeCore;
use crate::config::Config;
pub use event_handler::MatrixEventHandlerImpl;
pub use event_processor::MatrixEventProcessor;

pub struct MatrixAppservice {
    config: Arc<Config>,
}

impl MatrixAppservice {
    pub async fn new(config: Arc<Config>) -> Result<Self> {
        Ok(Self { config })
    }

    pub fn config(&self) -> &Config {
        &self.config
    }

    pub async fn set_processor(&self, processor: Arc<MatrixEventProcessor>) {}
}