mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 17:05:16 +00:00
Can join call
This commit is contained in:
25
src/api_data/joined_call_message.rs
Normal file
25
src/api_data/joined_call_message.rs
Normal 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(),
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
Reference in New Issue
Block a user