use std::{borrow::Cow, hash::Hash};
use crate::{
push_notify::{android::AndroidNotify, ios::IosNotify},
PushForward,
};
pub trait PushEntity: 'static + Sync + Send {
type Resource: PartialEq + Hash + 'static + Clone + Eq + Sync;
fn get_resource(&self) -> &Self::Resource;
type Content: AsRef<str> + 'static + Sync + ?Sized;
fn get_send_content(&self) -> &Self::Content;
fn get_title(&self) -> Cow<'_, str> {
"新饼来袭".into()
}
fn android_notify(&self, _notify: &mut AndroidNotify) {}
fn ios_notify(&self, _notify: &mut IosNotify) {}
fn push_forward(&self, _push_forward: &mut PushForward) {}
}