New service and model for the tunnel flights
This commit is contained in:
@@ -10,5 +10,6 @@ export enum CacheApiKey {
|
||||
StatsByGear,
|
||||
StatsOfLastYear,
|
||||
StatsOfLastMonth,
|
||||
StatsByYear
|
||||
StatsByYear,
|
||||
Tunnel
|
||||
}
|
||||
|
||||
25
Front/skydivelogs-app/src/models/tunnel.ts
Normal file
25
Front/skydivelogs-app/src/models/tunnel.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user