mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add optional secondsThreshold value
This commit is contained in:
@@ -7,6 +7,17 @@ export interface ScheduledNotificationData {
|
||||
deviceId: string;
|
||||
shuttleId: string;
|
||||
stopId: string;
|
||||
|
||||
/**
|
||||
* Value which specifies the ETA of the shuttle for when
|
||||
* the notification should fire.
|
||||
* For example, a secondsThreshold of 180 would mean that the notification
|
||||
* fires when the ETA drops below 3 minutes.
|
||||
*
|
||||
* Optional to retain backwards compatibility with devices on the
|
||||
* older API version.
|
||||
*/
|
||||
secondsThreshold?: number;
|
||||
}
|
||||
|
||||
export class ETANotificationScheduler {
|
||||
|
||||
Reference in New Issue
Block a user