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