mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
add method stubs for subscribing/unsubscribing to changes
This commit is contained in:
@@ -16,8 +16,9 @@ export interface GetterRepository {
|
|||||||
|
|
||||||
getEtasForShuttleId(shuttleId: string): Promise<IEta[]>;
|
getEtasForShuttleId(shuttleId: string): Promise<IEta[]>;
|
||||||
getEtasForStopId(stopId: string): Promise<IEta[]>;
|
getEtasForStopId(stopId: string): Promise<IEta[]>;
|
||||||
|
|
||||||
getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise<IEta | null>;
|
getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise<IEta | null>;
|
||||||
|
subscribeToEtaChanges(listener: (eta: IEta) => void): Promise<void>;
|
||||||
|
unsubscribeFromEtaChanges(listener: (eta: IEta) => void): Promise<void>;
|
||||||
|
|
||||||
getOrderedStopByRouteAndStopId(routeId: string, stopId: string): Promise<IOrderedStop | null>;
|
getOrderedStopByRouteAndStopId(routeId: string, stopId: string): Promise<IOrderedStop | null>;
|
||||||
|
|
||||||
@@ -34,4 +35,4 @@ export interface GetterRepository {
|
|||||||
* @param routeId
|
* @param routeId
|
||||||
*/
|
*/
|
||||||
getOrderedStopsByRouteId(routeId: string): Promise<IOrderedStop[]>;
|
getOrderedStopsByRouteId(routeId: string): Promise<IOrderedStop[]>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user