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