1
0
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:
2021-02-10 17:32:14 +01:00
parent 2e5cdca850
commit 3c696bde5f
6 changed files with 67 additions and 2 deletions

@ -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;