1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-04-20 03:20:54 +00:00
comunicapiv3/src/api_data/left_call_message.rs

25 lines
521 B
Rust

//! # 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.id(),
userID: user_id.id(),
}
}
}