use crate::client::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCachedNotificationCountResponse {
#[serde(rename = "status")]
pub status: models::ApiStatus,
#[serde(rename = "data")]
pub data: Box<models::UserNotificationCount>,
}
impl GetCachedNotificationCountResponse {
pub fn new(status: models::ApiStatus, data: models::UserNotificationCount) -> GetCachedNotificationCountResponse {
GetCachedNotificationCountResponse {
status,
data: Box::new(data),
}
}
}