mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
extract notification repository to interface
This commit is contained in:
19
src/repositories/InMemoryNotificationRepository.ts
Normal file
19
src/repositories/InMemoryNotificationRepository.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { NotificationLookupArguments, NotificationRepository, ScheduledNotification } from "./NotificationRepository";
|
||||
|
||||
export class InMemoryNotificationRepository implements NotificationRepository {
|
||||
async getAllNotificationsForShuttleAndStopId(shuttleId: string, stopId: string) {
|
||||
return [];
|
||||
}
|
||||
|
||||
async getSecondsThresholdForNotificationIfExists(lookupArguments: NotificationLookupArguments) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
async addOrUpdateNotification(notification: ScheduledNotification) {
|
||||
|
||||
}
|
||||
|
||||
async deleteNotificationIfExists(lookupArguments: NotificationLookupArguments) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user