mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 16:35:17 +00:00
Get the list of conversations of the user
This commit is contained in:
19
src/data/conversation.rs
Normal file
19
src/data/conversation.rs
Normal file
@ -0,0 +1,19 @@
|
||||
//! # Conversation information
|
||||
//!
|
||||
//! @author Pierre Hubert
|
||||
|
||||
use crate::data::user::UserID;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Conversation {
|
||||
pub id: u64,
|
||||
pub owner_id: UserID,
|
||||
pub name: Option<String>,
|
||||
pub members: Vec<UserID>,
|
||||
pub can_everyone_add_members: bool,
|
||||
pub last_active: u64,
|
||||
pub time_create: u64,
|
||||
|
||||
pub following: bool,
|
||||
pub saw_last_message: bool,
|
||||
}
|
@ -7,4 +7,5 @@ pub mod api_client;
|
||||
pub mod user;
|
||||
pub mod user_token;
|
||||
pub mod custom_emoji;
|
||||
pub mod new_conversation;
|
||||
pub mod new_conversation;
|
||||
pub mod conversation;
|
Reference in New Issue
Block a user