matrix-bridge-teams 0.1.0

A bridge between Matrix and Microsoft Teams written in Rust
use anyhow::Result;

pub struct RoomManager;

impl RoomManager {
    pub fn new() -> Self {
        Self
    }

    pub async fn create_room(&self, name: &str, topic: Option<&str>) -> Result<String> {
        Ok(format!("!room_{}:localhost", name))
    }

    pub async fn invite_user(&self, room_id: &str, user_id: &str) -> Result<()> {
        Ok(())
    }

    pub async fn set_room_name(&self, room_id: &str, name: &str) -> Result<()> {
        Ok(())
    }

    pub async fn set_room_topic(&self, room_id: &str, topic: &str) -> Result<()> {
        Ok(())
    }
}