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};

/// ActivityChartPoint : A single data point in the activity timeline chart.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ActivityChartPoint {
    /// Chat notification count.
    #[serde(rename = "chat")]
    pub chat: i64,
    /// Date string (YYYY-MM-DD).
    #[serde(rename = "date")]
    pub date: String,
    /// Email channel count.
    #[serde(rename = "email")]
    pub email: i64,
    /// In-app notification count.
    #[serde(rename = "in_app")]
    pub in_app: i64,
    /// Push notification count.
    #[serde(rename = "push")]
    pub push: i64,
    /// SMS channel count.
    #[serde(rename = "sms")]
    pub sms: i64,
    /// Total notifications on this date.
    #[serde(rename = "total")]
    pub total: i64,
}

impl ActivityChartPoint {
    /// A single data point in the activity timeline chart.
    pub fn new(chat: i64, date: String, email: i64, in_app: i64, push: i64, sms: i64, total: i64) -> ActivityChartPoint {
        ActivityChartPoint {
            chat,
            date,
            email,
            in_app,
            push,
            sms,
            total,
        }
    }
}