1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-07-01 21:53:29 +00:00
Files
comunicapiv3/src/api_data/left_call_message.rs
2021-03-04 18:51:52 +01:00

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(),
}
}
}