mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 08:25:16 +00:00
Can leave a call
This commit is contained in:
25
src/api_data/left_call_message.rs
Normal file
25
src/api_data/left_call_message.rs
Normal file
@ -0,0 +1,25 @@
|
||||
//! # Left 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 left a call
|
||||
#[derive(Serialize)]
|
||||
#[allow(non_snake_case)]
|
||||
pub struct LeftCallMessage {
|
||||
callID: u64,
|
||||
userID: u64,
|
||||
}
|
||||
|
||||
impl LeftCallMessage {
|
||||
pub fn new(call_id: &ConvID, user_id: &UserID) -> Self {
|
||||
Self {
|
||||
callID: call_id.clone(),
|
||||
userID: user_id.id(),
|
||||
}
|
||||
}
|
||||
}
|
@ -59,4 +59,5 @@ pub mod res_create_custom_emoji;
|
||||
pub mod res_get_ws_token;
|
||||
pub mod user_calls_config;
|
||||
pub mod joined_call_message;
|
||||
pub mod call_member_info;
|
||||
pub mod call_member_info;
|
||||
pub mod left_call_message;
|
Reference in New Issue
Block a user