2020-06-04 17:01:35 +00:00
|
|
|
//! # Conversation information
|
|
|
|
//!
|
|
|
|
//! @author Pierre Hubert
|
|
|
|
|
|
|
|
use crate::data::user::UserID;
|
|
|
|
|
2021-02-06 07:55:14 +00:00
|
|
|
pub type ConvID = u64;
|
|
|
|
|
2020-07-13 09:44:37 +00:00
|
|
|
#[derive(Debug, PartialEq, Eq)]
|
2020-06-04 17:01:35 +00:00
|
|
|
pub struct Conversation {
|
2021-02-06 07:55:14 +00:00
|
|
|
pub id: ConvID,
|
2020-06-04 17:01:35 +00:00
|
|
|
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,
|
|
|
|
}
|