UNPKG

ojp-sdk

Version:

OJP (Open Journey Planner) Javascript SDK

25 lines (24 loc) 1.36 kB
import { ApiConfig } from '../../types/stage-config'; import { OJPBaseRequest } from '../base-request'; import { StopEventType } from '../../types/stop-event-type'; import { StopEventRequest_Response } from '../types/stop-event-request.type'; import { Language } from '../../types/language-type'; import { GeoPosition } from '../../location/geoposition'; export declare class StopEventRequest extends OJPBaseRequest { stopPlaceRef: string | null; geoPosition: GeoPosition | null; depArrTime: Date; numberOfResults: number; stopEventType: StopEventType; includePreviousCalls: boolean; includeOnwardCalls: boolean; includeRealtimeData: boolean; enableExtensions: boolean; constructor(stageConfig: ApiConfig, language: Language, stopPlaceRef: string | null, geoPosition: GeoPosition | null, stopEventType: StopEventType, stopEventDate: Date); static Empty(stageConfig?: ApiConfig): StopEventRequest; static initWithMock(mockText: string): StopEventRequest; static initWithRequestMock(mockText: string, stageConfig?: ApiConfig): StopEventRequest; static initWithStopPlaceRef(stageConfig: ApiConfig, language: Language, stopPlaceRef: string, stopEventType: StopEventType, stopEventDate: Date): StopEventRequest; protected buildRequestNode(): void; fetchResponse(): Promise<StopEventRequest_Response>; }