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:
@ -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;
|
16
src/api_data/res_number_unread_notifications.rs
Normal file
16
src/api_data/res_number_unread_notifications.rs
Normal 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 }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user