1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-02-22 16:51:17 +00:00
comunicapiv3/src/api_data/call_peer_ready.rs

23 lines
448 B
Rust
Raw Normal View History

2021-02-11 19:21:24 +01:00
//! # 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 {
2021-03-04 18:51:52 +01:00
callID: call_id.id(),
2021-02-11 19:21:24 +01:00
peerID: user_id.id(),
}
}
}