1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Can get the list of memberships of a user

This commit is contained in:
2020-07-13 11:17:35 +02:00
parent 59961129c5
commit b5bcb3e8c7
10 changed files with 160 additions and 22 deletions

View File

@ -24,4 +24,5 @@ pub mod movie;
pub mod survey;
pub mod comment;
pub mod new_survey;
pub mod notification;
pub mod notification;
pub mod user_membership;

View File

@ -0,0 +1,13 @@
//! # User membership
//!
//! @author Pierre Hubert
use crate::data::friend::Friend;
use crate::data::conversation::Conversation;
use crate::data::group_id::GroupID;
pub enum UserMembership {
Group(GroupID, u64),
Friend(Friend),
Conversation(Conversation)
}