1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Can mark a user as ready to stream

This commit is contained in:
2021-02-11 19:21:24 +01:00
parent 50b094acfb
commit 8ebfcf2785
4 changed files with 54 additions and 1 deletions

View 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(),
}
}
}

View File

@ -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;