mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-07-15 19:58:05 +00:00
Can get the list of members of a call
This commit is contained in:
23
src/api_data/call_member_info.rs
Normal file
23
src/api_data/call_member_info.rs
Normal file
@ -0,0 +1,23 @@
|
||||
//! # Call member information
|
||||
//!
|
||||
//! @author Pierre Hubert
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::data::user::UserID;
|
||||
use crate::data::user_ws_connection::ActiveCall;
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[allow(non_snake_case)]
|
||||
pub struct CallMemberInfo {
|
||||
userID: u64,
|
||||
ready: bool,
|
||||
}
|
||||
|
||||
impl CallMemberInfo {
|
||||
pub fn new(user_id: &UserID, call: &ActiveCall) -> Self {
|
||||
Self {
|
||||
userID: user_id.id(),
|
||||
ready: call.ready,
|
||||
}
|
||||
}
|
||||
}
|
@ -58,4 +58,5 @@ 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 joined_call_message;
|
||||
pub mod joined_call_message;
|
||||
pub mod call_member_info;
|
Reference in New Issue
Block a user