1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 07:19:22 +00:00
comunicapiv3/src/api_data/user_is_writing_message_in_conversation.rs

22 lines
488 B
Rust
Raw Normal View History

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