mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 16:35:17 +00:00
Finish to implement conversation creation
This commit is contained in:
@ -13,4 +13,5 @@ pub mod current_user_id;
|
||||
pub mod user_info;
|
||||
pub mod custom_emoji;
|
||||
pub mod res_find_user_by_virtual_directory;
|
||||
pub mod res_find_virtual_directory;
|
||||
pub mod res_find_virtual_directory;
|
||||
pub mod res_create_conversation;
|
22
src/api_data/res_create_conversation.rs
Normal file
22
src/api_data/res_create_conversation.rs
Normal file
@ -0,0 +1,22 @@
|
||||
//! # Create conversation result
|
||||
//!
|
||||
//! @author Pierre Hubert
|
||||
|
||||
use serde::{Serialize};
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[allow(non_snake_case)]
|
||||
pub struct ResCreateConversation {
|
||||
conversationID: u64,
|
||||
success: String,
|
||||
}
|
||||
|
||||
impl ResCreateConversation {
|
||||
/// Construct a new Result instance
|
||||
pub fn new(conv_id: u64) -> ResCreateConversation {
|
||||
ResCreateConversation {
|
||||
conversationID: conv_id,
|
||||
success: "The conversation was successfully created!".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user