1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Get calls configuration

This commit is contained in:
2021-02-08 18:24:28 +01:00
parent 01b83dfa8f
commit 8cfd10c21c
5 changed files with 44 additions and 3 deletions

View File

@ -56,4 +56,5 @@ pub mod language_settings_api;
pub mod security_settings_api;
pub mod account_image_settings_api;
pub mod res_create_custom_emoji;
pub mod res_get_ws_token;
pub mod res_get_ws_token;
pub mod user_calls_config;

View File

@ -0,0 +1,19 @@
//! # User side calls configuration
//!
//! @author Pierre Hubert
use serde::Serialize;
use crate::data::config::RtcRelayConfig;
#[derive(Serialize)]
#[allow(non_snake_case)]
pub struct UserCallsConfig {
iceServers: Vec<String>,
}
impl UserCallsConfig {
pub fn new(conf: &RtcRelayConfig) -> Self {
Self { iceServers: conf.ice_servers.clone() }
}
}