mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-02-23 01:01:16 +00:00
24 lines
494 B
Rust
24 lines
494 B
Rust
|
//! # 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(),
|
||
|
}
|
||
|
}
|
||
|
}
|