66 lines
1.5 KiB
TypeScript
66 lines
1.5 KiB
TypeScript
import { GearResp } from './gear';
|
|
import { DropZoneResp } from './dropzone';
|
|
import { AircraftResp } from './aircraft';
|
|
import { JumpTypeResp } from './jumpType';
|
|
|
|
export class JumpReq {
|
|
constructor(data: any) {
|
|
Object.assign(this, data);
|
|
}
|
|
|
|
public id: number;
|
|
public jumpTypeId: number;
|
|
public aircraftId: number;
|
|
public dropZoneId: number;
|
|
public gearId: number;
|
|
public exitAltitude: number;
|
|
public deployAltitude: number;
|
|
public withCutaway: boolean;
|
|
public notes: string;
|
|
public jumpDate: string;
|
|
public isSpecial: boolean;
|
|
}
|
|
|
|
export class JumpResp {
|
|
constructor(data: any) {
|
|
Object.assign(this, data);
|
|
this.jumpDate = new Date(data.jumpDate);
|
|
}
|
|
|
|
public id: number;
|
|
public jumpType: JumpTypeResp;
|
|
public aircraft: AircraftResp;
|
|
public dropZone: DropZoneResp;
|
|
public gear: GearResp;
|
|
|
|
public jumpTypeId: number;
|
|
public aircraftId: number;
|
|
public dropZoneId: number;
|
|
public gearId: number;
|
|
|
|
public exitAltitude: number;
|
|
public deployAltitude: number;
|
|
public withCutaway: boolean;
|
|
public notes: string;
|
|
public jumpDate: Date;
|
|
public isSpecial: boolean;
|
|
}
|
|
|
|
export class Jump {
|
|
constructor(data: any) {
|
|
Object.assign(this, data);
|
|
this.jumpDate = new Date(data.jumpDate);
|
|
}
|
|
|
|
public id: number;
|
|
public jumpType: JumpTypeResp;
|
|
public aircraft: AircraftResp;
|
|
public dropZone: DropZoneResp;
|
|
public gear: GearResp;
|
|
public exitAltitude: number;
|
|
public deployAltitude: number;
|
|
public withCutaway: boolean;
|
|
public notes: string;
|
|
public jumpDate: Date;
|
|
public isSpecial: boolean;
|
|
} |