enbbox 1.0.1

Notification infrastructure API — open-source alternative to Novu/Courier
Documentation
/*
 * enbbox API
 *
 * Notification infrastructure API — open-source alternative to Novu/Courier
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// NotificationCount : Count of unread and total inbox notifications.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NotificationCount {
    #[serde(rename = "total_count")]
    pub total_count: i64,
    #[serde(rename = "unread_count")]
    pub unread_count: i64,
    #[serde(rename = "unseen_count")]
    pub unseen_count: i64,
}

impl NotificationCount {
    /// Count of unread and total inbox notifications.
    pub fn new(total_count: i64, unread_count: i64, unseen_count: i64) -> NotificationCount {
        NotificationCount {
            total_count,
            unread_count,
            unseen_count,
        }
    }
}