New service and model for the tunnel flights

This commit is contained in:
Sébastien ANDRE
2023-05-05 17:59:11 +02:00
parent 487b287924
commit e41e7a1fe4
6 changed files with 163 additions and 53 deletions

View File

@@ -10,5 +10,6 @@ export enum CacheApiKey {
StatsByGear,
StatsOfLastYear,
StatsOfLastMonth,
StatsByYear
StatsByYear,
Tunnel
}

View File

@@ -0,0 +1,25 @@
export class TunnelReq {
constructor(data: any) {
Object.assign(this, data);
}
public id: number;
public comment: string;
public tunnelId: number;
public nbMinutes: number;
public flightDate: string;
}
export class TunnelResp {
constructor(data: any) {
Object.assign(this, data);
}
public id: number;
public latitude: string;
public longitude: string;
public name: string;
public address: string;
public website: string;
public email: string;
}