Call API to get the tunnel flights

This commit is contained in:
Sébastien ANDRE
2023-06-29 16:00:28 +02:00
parent 8598f4e087
commit cc56f3def0
3 changed files with 46 additions and 7 deletions

View File

@@ -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;
}