notificationsService
This commit is contained in:
1 parent
391f42ee53
commit
4e9839e2e5
6 files changed
+46
-52
No files matched your search
@@ -1,4 +1,11 @@
|
||||
import type { Monitor } from "@/types/index.js";
|
||||
interface INotificationSerivce {
|
||||
handleNotifications: (moniotr: Monitor) => Promise<void>;
|
||||
import type { Monitor, MonitorStatusResponse } from "@/types/index.js";
|
||||
export interface INotificationsService {
|
||||
handleNotifications: (monitor: Monitor, monitorStatusResponse: MonitorStatusResponse) => Promise<void>;
|
||||
}
|
||||
|
||||
export class NotificationsService implements INotificationsService {
|
||||
handleNotifications = async (monitor: Monitor, monitorStatusResponse: MonitorStatusResponse) => {
|
||||
console.log(JSON.stringify(monitor, null, 2));
|
||||
console.log(JSON.stringify(monitorStatusResponse, null, 2));
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user