mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
add method stubs in basic in-memory repository
This commit is contained in:
@@ -58,6 +58,12 @@ export class UnoptimizedInMemoryRepository implements GetterSetterRepository {
|
|||||||
return this.etas.filter(eta => eta.stopId === stopId);
|
return this.etas.filter(eta => eta.stopId === stopId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async subscribeToEtaChanges(listener: (eta: IEta) => void): Promise<void> {
|
||||||
|
}
|
||||||
|
|
||||||
|
public async unsubscribeFromEtaChanges(listener: (eta: IEta) => void): Promise<void> {
|
||||||
|
}
|
||||||
|
|
||||||
public async getEtaForShuttleAndStopId(shuttleId: string, stopId: string) {
|
public async getEtaForShuttleAndStopId(shuttleId: string, stopId: string) {
|
||||||
return this.findEntityByMatcher<IEta>((value) => value.stopId === stopId && value.shuttleId === shuttleId, this.etas);
|
return this.findEntityByMatcher<IEta>((value) => value.stopId === stopId && value.shuttleId === shuttleId, this.etas);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user