1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-27 07:49:21 +00:00
comunicapiv3/src/api_data/joined_call_message.rs
2021-02-10 17:16:52 +01:00

25 lines
532 B
Rust

//! # Joined call message
//!
//! @author Pierre Hubert
use serde::Serialize;
use crate::data::conversation::ConvID;
use crate::data::user::UserID;
/// This structure is used to give information about a user who joined a call
#[derive(Serialize)]
#[allow(non_snake_case)]
pub struct JoinedCallMessage {
callID: u64,
userID: u64,
}
impl JoinedCallMessage {
pub fn new(call_id: &ConvID, user_id: &UserID) -> Self {
Self {
callID: call_id.clone(),
userID: user_id.id(),
}
}
}