1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 17:05:16 +00:00

Can join call

This commit is contained in:
2021-02-10 17:16:52 +01:00
parent 8cfd10c21c
commit 2e5cdca850
10 changed files with 140 additions and 38 deletions

View File

@ -0,0 +1,25 @@
//! # 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(),
}
}
}

View File

@ -57,4 +57,5 @@ pub mod security_settings_api;
pub mod account_image_settings_api;
pub mod res_create_custom_emoji;
pub mod res_get_ws_token;
pub mod user_calls_config;
pub mod user_calls_config;
pub mod joined_call_message;