1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-25 23:09:22 +00:00
comunicapiv3/src/api_data/user_is_writing_message_in_conversation.rs

22 lines
488 B
Rust

//! # User is writing message in conversation event
//!
//! @author Pierre Hubert
use serde::Serialize;
use crate::data::conversation::ConvID;
use crate::data::user::UserID;
#[derive(Serialize)]
pub struct UserIsWritingMessageInConversation {
user_id: u64,
conv_id: u64,
}
impl UserIsWritingMessageInConversation {
pub fn new(user_id: &UserID, conv_id: ConvID) -> Self {
Self {
user_id: user_id.id(),
conv_id: conv_id.id(),
}
}
}