1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-07-14 03:18:05 +00:00

Can stop streaming

This commit is contained in:
2021-02-12 13:52:47 +01:00
parent 5388aa8054
commit f4001c0b99
7 changed files with 92 additions and 3 deletions

@ -0,0 +1,24 @@
//! # Call peer interrupted streaming
//!
//! @author Pierre Hubert
use serde::Serialize;
use crate::data::conversation::ConvID;
use crate::data::user::UserID;
#[derive(Serialize)]
#[allow(non_snake_case)]
pub struct CallPeerInterruptedStreamingAPI {
callID: u64,
peerID: u64,
}
impl CallPeerInterruptedStreamingAPI {
pub fn new(call_id: &ConvID, peer_id: &UserID) -> Self {
Self {
callID: call_id.clone(),
peerID: peer_id.id(),
}
}
}

@ -62,4 +62,5 @@ pub mod joined_call_message;
pub mod call_member_info;
pub mod left_call_message;
pub mod new_call_signal;
pub mod call_peer_ready;
pub mod call_peer_ready;
pub mod call_peer_interrupted_streaming;