mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-27 07:49:21 +00:00
25 lines
532 B
Rust
25 lines
532 B
Rust
//! # 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(),
|
|
}
|
|
}
|
|
} |