1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-23 13:59:21 +00:00
comunicapiv3/src/api_data/call_member_info.rs

23 lines
456 B
Rust
Raw Normal View History

2021-02-10 16:32:14 +00:00
//! # 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,
}
}
}