fix/little-updates (#1)
Reviewed-on: #1 Co-authored-by: sandre <perso@sebastienandre.com> Co-committed-by: sandre <perso@sebastienandre.com>
This commit was merged in pull request #1.
This commit is contained in:
@@ -12,5 +12,6 @@ export enum CacheApiKey {
|
||||
StatsOfLastYear,
|
||||
StatsOfLastMonth,
|
||||
StatsByYear,
|
||||
Tunnel
|
||||
Tunnel,
|
||||
StatsByYearByJumpType,
|
||||
}
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
import { Observable } from 'rxjs';
|
||||
import { Jump, JumpResp } from './jump';
|
||||
import { Observable } from "rxjs";
|
||||
import { Jump, JumpResp } from "./jump";
|
||||
|
||||
export class StatsResp {
|
||||
public simpleSummary: Observable<SimpleSummary>;
|
||||
|
||||
public statsByDz: Observable<Array<StatsByDzResp>>;
|
||||
public statsByAircraft: Observable<Array<StatsByAircraftResp>>;
|
||||
public statsByGear: Observable<Array<StatsByGearResp>>;
|
||||
public statsByJumpType: Observable<Array<StatsByJumpTypeResp>>;
|
||||
public statsByYear: Observable<Array<StatsByYearResp>>;
|
||||
|
||||
public statsByYearByJumpType: Observable<Array<StatsByYearByJumpTypeResp>>;
|
||||
public statsForLastYear: Observable<StatsForLastYearResp>;
|
||||
public statsForLastMonth: Observable<StatsForLastMonthResp>;
|
||||
}
|
||||
@@ -81,9 +80,21 @@ export class StatsByYearResp {
|
||||
public nb: number;
|
||||
}
|
||||
|
||||
export class StatsByYearByJumpTypeResp {
|
||||
constructor(data: any) {
|
||||
Object.assign(this, data);
|
||||
}
|
||||
|
||||
public label: string;
|
||||
public label2: string;
|
||||
public nb: number;
|
||||
}
|
||||
|
||||
export class StatsForLastYearResp {
|
||||
constructor(dataByDz: Array<StatsByDzResp>,
|
||||
dataByJumpType: Array<StatsByJumpTypeResp>) {
|
||||
constructor(
|
||||
dataByDz: Array<StatsByDzResp>,
|
||||
dataByJumpType: Array<StatsByJumpTypeResp>
|
||||
) {
|
||||
this.byDz = new Array<StatsByDzResp>();
|
||||
this.byJumpType = new Array<StatsByJumpTypeResp>();
|
||||
|
||||
@@ -96,8 +107,10 @@ export class StatsForLastYearResp {
|
||||
}
|
||||
|
||||
export class StatsForLastMonthResp {
|
||||
constructor(dataByDz: Array<StatsByDzResp>,
|
||||
dataByJumpType: Array<StatsByJumpTypeResp>) {
|
||||
constructor(
|
||||
dataByDz: Array<StatsByDzResp>,
|
||||
dataByJumpType: Array<StatsByJumpTypeResp>
|
||||
) {
|
||||
this.byDz = new Array<StatsByDzResp>();
|
||||
this.byJumpType = new Array<StatsByJumpTypeResp>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user