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

Can count the number of unread notifications

This commit is contained in:
2020-07-10 12:55:50 +02:00
parent 6b0363935e
commit 32aa7e7d1e
8 changed files with 58 additions and 3 deletions

View File

@ -37,4 +37,5 @@ pub mod survey_api;
pub mod comment_api;
pub mod res_create_post;
pub mod posts_targets_api;
pub mod res_create_comment;
pub mod res_create_comment;
pub mod res_number_unread_notifications;

View File

@ -0,0 +1,16 @@
//! # Number of unread notifications
//!
//! @author Pierre Hubert
use serde::Serialize;
#[derive(Serialize)]
pub struct ResNumberUnreadNotifications {
number: u64
}
impl ResNumberUnreadNotifications {
pub fn new(number: u64) -> ResNumberUnreadNotifications {
ResNumberUnreadNotifications { number }
}
}