feat: notification framework

This commit is contained in:
sct
2020-11-22 19:11:14 +09:00
parent fb5c791b0b
commit d8e542e5fe
15 changed files with 577 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
import { Notification } from '..';
export interface NotificationPayload {
subject: string;
username?: string;
image?: string;
message?: string;
}
export interface NotificationAgent {
shouldSend(type: Notification): boolean;
send(type: Notification, payload: NotificationPayload): Promise<boolean>;
}