-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflightplan.service.d.ts
37 lines (37 loc) · 1.29 KB
/
flightplan.service.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { Observable } from 'rxjs/Observable';
import { Flightplan } from "./Flightplan";
export interface FlightplanServiceConstructor {
new (): FlightplanService;
}
export declare function createFlightplanService(ctor: FlightplanServiceConstructor): FlightplanService;
/**
* Access to a flight plan library.
*
*/
export interface FlightplanService {
/**
* A hot observable delivering a list of flight plan names whenever there
* is a change in the flight plan library.
*/
flightplanList(): Observable<string[]>;
/**
* Retrieve a list of currently available flight plan names.
* @return A cold observable providing a list of flight plan names.
*/
getFlightplanList(): Observable<string[]>;
/**
* Load and return a flight plan.
* @return A cold observable providing a flight plan once.
*/
loadFlightplan(name: string): Observable<Flightplan>;
/**
* Save a flight plan. Triggers a flightplan-list event.
* @param The flight plan to store.
*/
saveFlightplan(flightplan: Flightplan): Observable<void>;
/**
* Delete a flight plan. Triggers a flightplan-list event.
* @param The name of the flight plan to delete.
*/
deleteFlightplan(name: string): Observable<void>;
}