use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct PushSubscription {
    pub id: String,
    pub endpoint: String,
    pub server_key: String,
    pub alerts: Alerts,
}

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct Alerts {
    pub follow: bool,
    pub favourite: bool,
    pub mention: bool,
    pub reblog: bool,
    pub poll: bool,
}
