mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-11-04 01:24:04 +00:00 
			
		
		
		
	Get calls configuration
This commit is contained in:
		@@ -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;
 | 
			
		||||
							
								
								
									
										19
									
								
								src/api_data/user_calls_config.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								src/api_data/user_calls_config.rs
									
									
									
									
									
										Normal 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() }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user