Files
sct-overseerr/server/lib/notifications/agents/agent.ts
2020-11-22 19:11:14 +09:00

14 lines
314 B
TypeScript

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>;
}