Call API to get the tunnel flights
This commit is contained in:
@@ -8,4 +8,30 @@ export class TunnelFlightReq {
|
||||
public nbMinutes: number;
|
||||
public notes: string;
|
||||
public flightDate: string;
|
||||
}
|
||||
|
||||
export class TunnelFlightResp {
|
||||
constructor(data: any) {
|
||||
Object.assign(this, data);
|
||||
this.flightDate = new Date(data.flightDate);
|
||||
}
|
||||
|
||||
public id: number;
|
||||
public tunnelId: number;
|
||||
public nbMinutes: number;
|
||||
public notes: string;
|
||||
public flightDate: Date;
|
||||
}
|
||||
|
||||
export class TunnelFlight {
|
||||
constructor(data: any) {
|
||||
Object.assign(this, data);
|
||||
this.flightDate = new Date(data.flightDate);
|
||||
}
|
||||
|
||||
public id: number;
|
||||
public tunnelId: number;
|
||||
public nbMinutes: number;
|
||||
public notes: string;
|
||||
public flightDate: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user