From acfc91d3c1ebbde7f5ceeaa0471950627755829a Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Sun, 2 Feb 2025 12:49:41 -0800 Subject: [PATCH] add method stubs for subscribing/unsubscribing to changes --- src/repositories/GetterRepository.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/repositories/GetterRepository.ts b/src/repositories/GetterRepository.ts index 4c6a3b0..c9f473c 100644 --- a/src/repositories/GetterRepository.ts +++ b/src/repositories/GetterRepository.ts @@ -16,8 +16,9 @@ export interface GetterRepository { getEtasForShuttleId(shuttleId: string): Promise; getEtasForStopId(stopId: string): Promise; - getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise; + subscribeToEtaChanges(listener: (eta: IEta) => void): Promise; + unsubscribeFromEtaChanges(listener: (eta: IEta) => void): Promise; getOrderedStopByRouteAndStopId(routeId: string, stopId: string): Promise; @@ -34,4 +35,4 @@ export interface GetterRepository { * @param routeId */ getOrderedStopsByRouteId(routeId: string): Promise; -} \ No newline at end of file +}