mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-11-03 17:14:03 +00:00 
			
		
		
		
	Can mark a user as ready to stream
This commit is contained in:
		
							
								
								
									
										23
									
								
								src/api_data/call_peer_ready.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/api_data/call_peer_ready.rs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
//! # Call peer ready API
 | 
			
		||||
//!
 | 
			
		||||
//! @author Pierre Hubert
 | 
			
		||||
use serde::Serialize;
 | 
			
		||||
 | 
			
		||||
use crate::data::conversation::ConvID;
 | 
			
		||||
use crate::data::user::UserID;
 | 
			
		||||
 | 
			
		||||
#[derive(Serialize)]
 | 
			
		||||
#[allow(non_snake_case)]
 | 
			
		||||
pub struct CallPeerReadyAPI {
 | 
			
		||||
    callID: u64,
 | 
			
		||||
    peerID: u64,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl CallPeerReadyAPI {
 | 
			
		||||
    pub fn new(call_id: &ConvID, user_id: &UserID) -> Self {
 | 
			
		||||
        Self {
 | 
			
		||||
            callID: call_id.clone(),
 | 
			
		||||
            peerID: user_id.id(),
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -61,4 +61,5 @@ pub mod user_calls_config;
 | 
			
		||||
pub mod joined_call_message;
 | 
			
		||||
pub mod call_member_info;
 | 
			
		||||
pub mod left_call_message;
 | 
			
		||||
pub mod new_call_signal;
 | 
			
		||||
pub mod new_call_signal;
 | 
			
		||||
pub mod call_peer_ready;
 | 
			
		||||
		Reference in New Issue
	
	Block a user