Bug fix +
Meilleur chargement du cache après login
This commit is contained in:
@@ -45,3 +45,22 @@ export class JumpResp {
|
||||
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;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Observable } from 'rxjs';
|
||||
import { JumpResp } from './jump';
|
||||
import { Jump, JumpResp } from './jump';
|
||||
|
||||
export class StatsResp {
|
||||
public simpleSummary: Observable<SimpleSummary>;
|
||||
@@ -14,14 +14,10 @@ export class StatsResp {
|
||||
public statsForLastMonth: Observable<StatsForLastMonthResp>;
|
||||
}
|
||||
|
||||
export class SimpleSummary {
|
||||
export class SimpleSummaryResp {
|
||||
constructor(data: any) {
|
||||
this.totalJumps = data.totalJumps;
|
||||
this.totalCutaways = data.totalCutaways;
|
||||
|
||||
if (data.lastJump !== null) {
|
||||
this.lastJump = new JumpResp(data.lastJump);
|
||||
}
|
||||
}
|
||||
|
||||
public totalJumps: number;
|
||||
@@ -29,6 +25,17 @@ export class SimpleSummary {
|
||||
public lastJump: JumpResp;
|
||||
}
|
||||
|
||||
export class SimpleSummary {
|
||||
constructor(data: any) {
|
||||
this.totalJumps = data.totalJumps;
|
||||
this.totalCutaways = data.totalCutaways;
|
||||
}
|
||||
|
||||
public totalJumps: number;
|
||||
public totalCutaways: number;
|
||||
public lastJump: Jump;
|
||||
}
|
||||
|
||||
export class StatsByDzResp {
|
||||
constructor(data: any) {
|
||||
Object.assign(this, data);
|
||||
|
||||
Reference in New Issue
Block a user