mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-27 07:49:21 +00:00
23 lines
451 B
Rust
23 lines
451 B
Rust
//! # 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(),
|
|
}
|
|
}
|
|
} |