From 8598f4e087d0067ad9e083d531ad7df0fee2c205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20ANDRE?= Date: Thu, 29 Jun 2023 15:59:58 +0200 Subject: [PATCH] Rename the methods --- .../src/app/default/default.component.ts | 2 +- .../app/jump-infos/jump-infos.component.ts | 4 +- .../list-of-aircrafts.component.ts | 2 +- .../app/list-of-dzs/list-of-dzs.component.ts | 6 +- .../list-of-gears/list-of-gears.component.ts | 2 +- .../list-of-images.component.ts | 2 +- .../list-of-jump-types.component.ts | 2 +- .../list-of-jumps/list-of-jumps.component.ts | 6 +- .../list-of-tunnel-flights.component.ts | 2 +- .../new-aircraft/new-aircraft.component.ts | 4 +- .../new-drop-zone/new-drop-zone.component.ts | 4 +- .../src/app/new-gear/new-gear.component.ts | 4 +- .../new-jump-type/new-jump-type.component.ts | 4 +- .../src/app/new-jump/new-jump.component.ts | 6 +- .../src/app/summary/summary.component.ts | 2 +- .../src/services/aircraft.service.ts | 2 +- .../src/services/date.service.ts | 4 +- .../src/services/dropzone.service.ts | 6 +- .../src/services/gear.service.ts | 2 +- .../src/services/image.service.ts | 2 +- .../src/services/jump-type.service.ts | 2 +- .../src/services/jump.service.ts | 56 +++++++++---------- .../src/services/service-cache-api.service.ts | 3 - 23 files changed, 62 insertions(+), 67 deletions(-) diff --git a/Front/skydivelogs-app/src/app/default/default.component.ts b/Front/skydivelogs-app/src/app/default/default.component.ts index 6d352e9..993b3f5 100644 --- a/Front/skydivelogs-app/src/app/default/default.component.ts +++ b/Front/skydivelogs-app/src/app/default/default.component.ts @@ -46,7 +46,7 @@ export class DefaultComponent implements OnInit { private updateTitle() { this.translateService.get("Default_Title").subscribe( - data => { this.serviceComm.UpdatedComponentTitle(data); } + data => { this.serviceComm.updatedComponentTitle(data); } ); } } \ No newline at end of file diff --git a/Front/skydivelogs-app/src/app/jump-infos/jump-infos.component.ts b/Front/skydivelogs-app/src/app/jump-infos/jump-infos.component.ts index eaf516d..cb5c817 100644 --- a/Front/skydivelogs-app/src/app/jump-infos/jump-infos.component.ts +++ b/Front/skydivelogs-app/src/app/jump-infos/jump-infos.component.ts @@ -25,12 +25,12 @@ export class JumpInfosComponent implements OnInit { ngOnInit(): void {} public updateJump() { - this.serviceJump.UpdateJump(this.jump.id, + this.serviceJump.updateJump(this.jump.id, this.jump.isSpecial, this.jump.withCutaway, this.jump.notes) .subscribe(() => { - this.serviceComm.RefreshData(AddAction.Jump); + this.serviceComm.refreshData(AddAction.Jump); }); } } diff --git a/Front/skydivelogs-app/src/app/list-of-aircrafts/list-of-aircrafts.component.ts b/Front/skydivelogs-app/src/app/list-of-aircrafts/list-of-aircrafts.component.ts index fcc6485..7a7c9bb 100644 --- a/Front/skydivelogs-app/src/app/list-of-aircrafts/list-of-aircrafts.component.ts +++ b/Front/skydivelogs-app/src/app/list-of-aircrafts/list-of-aircrafts.component.ts @@ -65,7 +65,7 @@ export class ListOfAircraftsComponent implements OnInit { private updateTitle() { this.translateService.get("ListAircrafts_Title").subscribe( - data => { this.serviceComm.UpdatedComponentTitle(data); } + data => { this.serviceComm.updatedComponentTitle(data); } ); } } diff --git a/Front/skydivelogs-app/src/app/list-of-dzs/list-of-dzs.component.ts b/Front/skydivelogs-app/src/app/list-of-dzs/list-of-dzs.component.ts index 9251f77..b485bc8 100644 --- a/Front/skydivelogs-app/src/app/list-of-dzs/list-of-dzs.component.ts +++ b/Front/skydivelogs-app/src/app/list-of-dzs/list-of-dzs.component.ts @@ -67,7 +67,7 @@ export class ListOfDzsComponent implements OnInit { public setToFavorite(dropzone: DropZoneResp) { dropzone.isFavorite = true; - this.serviceApi.SetFavoriteDropZone(dropzone); + this.serviceApi.setFavoriteDropZone(dropzone); const data = this.dataSourceTable.data; data.sort((a, b) => (b.isFavorite ? 1 : 0) - (a.isFavorite ? 1 : 0)); @@ -77,7 +77,7 @@ export class ListOfDzsComponent implements OnInit { public removeToFavorite(dropzone: DropZoneResp) { dropzone.isFavorite = false; - this.serviceApi.RemoveFavoriteDropZone(dropzone); + this.serviceApi.removeFavoriteDropZone(dropzone); const data = this.dataSourceTable.data; data.sort((a, b) => (b.isFavorite ? 1 : 0) - (a.isFavorite ? 1 : 0)); @@ -99,7 +99,7 @@ export class ListOfDzsComponent implements OnInit { private updateTitle() { this.translateService.get("ListDz_Title").subscribe( - data => { this.serviceComm.UpdatedComponentTitle(data); } + data => { this.serviceComm.updatedComponentTitle(data); } ); } } diff --git a/Front/skydivelogs-app/src/app/list-of-gears/list-of-gears.component.ts b/Front/skydivelogs-app/src/app/list-of-gears/list-of-gears.component.ts index c9b2a47..330e099 100644 --- a/Front/skydivelogs-app/src/app/list-of-gears/list-of-gears.component.ts +++ b/Front/skydivelogs-app/src/app/list-of-gears/list-of-gears.component.ts @@ -71,7 +71,7 @@ export class ListOfGearsComponent implements OnInit { private updateTitle() { this.translateService.get("ListGears_Title").subscribe( - data => { this.serviceComm.UpdatedComponentTitle(data); } + data => { this.serviceComm.updatedComponentTitle(data); } ); } } diff --git a/Front/skydivelogs-app/src/app/list-of-images/list-of-images.component.ts b/Front/skydivelogs-app/src/app/list-of-images/list-of-images.component.ts index 45771ce..230e29f 100644 --- a/Front/skydivelogs-app/src/app/list-of-images/list-of-images.component.ts +++ b/Front/skydivelogs-app/src/app/list-of-images/list-of-images.component.ts @@ -108,7 +108,7 @@ export class ListOfImagesComponent implements OnInit { return; } - this.serviceApi.AddImage(formData.comment, this.selectedFile) + this.serviceApi.addImage(formData.comment, this.selectedFile) .subscribe( () => { this.getListOfImages(); } ); diff --git a/Front/skydivelogs-app/src/app/list-of-jump-types/list-of-jump-types.component.ts b/Front/skydivelogs-app/src/app/list-of-jump-types/list-of-jump-types.component.ts index d0de6fa..e4126c9 100644 --- a/Front/skydivelogs-app/src/app/list-of-jump-types/list-of-jump-types.component.ts +++ b/Front/skydivelogs-app/src/app/list-of-jump-types/list-of-jump-types.component.ts @@ -65,7 +65,7 @@ export class ListOfJumpTypesComponent implements OnInit { private updateTitle() { this.translateService.get("ListJumpTypes_Title").subscribe( - data => { this.serviceComm.UpdatedComponentTitle(data); } + data => { this.serviceComm.updatedComponentTitle(data); } ); } } diff --git a/Front/skydivelogs-app/src/app/list-of-jumps/list-of-jumps.component.ts b/Front/skydivelogs-app/src/app/list-of-jumps/list-of-jumps.component.ts index 4c0faa5..4243779 100644 --- a/Front/skydivelogs-app/src/app/list-of-jumps/list-of-jumps.component.ts +++ b/Front/skydivelogs-app/src/app/list-of-jumps/list-of-jumps.component.ts @@ -61,7 +61,7 @@ export class ListOfJumpsComponent implements OnInit { getListOfJumps(pageSize: number = 20, pageIndex: number = 0) { this.isLoading = true; - this.serviceApi.GetJumps(pageIndex * pageSize, pageIndex * pageSize + pageSize) + this.serviceApi.getJumps(pageIndex * pageSize, pageIndex * pageSize + pageSize) .subscribe((data) => { this.dataSourceTable.data = data.rows; setTimeout(() => { @@ -86,7 +86,7 @@ export class ListOfJumpsComponent implements OnInit { this.dataSourceTable.data = data; - this.serviceApi.DeleteJump(item); + this.serviceApi.deleteJump(item); this.statsService.resetStats(); } @@ -96,7 +96,7 @@ export class ListOfJumpsComponent implements OnInit { private updateTitle() { this.translateService.get("ListJumps_Title").subscribe((data) => { - this.serviceComm.UpdatedComponentTitle(data); + this.serviceComm.updatedComponentTitle(data); }); } } diff --git a/Front/skydivelogs-app/src/app/list-of-tunnel-flights/list-of-tunnel-flights.component.ts b/Front/skydivelogs-app/src/app/list-of-tunnel-flights/list-of-tunnel-flights.component.ts index d01d99d..3b5cead 100644 --- a/Front/skydivelogs-app/src/app/list-of-tunnel-flights/list-of-tunnel-flights.component.ts +++ b/Front/skydivelogs-app/src/app/list-of-tunnel-flights/list-of-tunnel-flights.component.ts @@ -38,7 +38,7 @@ export class ListOfTunnelFlightsComponent implements OnInit { private updateTitle() { this.translateService.get("ListTunnelFlight_Title").subscribe( - data => { this.serviceComm.UpdatedComponentTitle(data); } + data => { this.serviceComm.updatedComponentTitle(data); } ); } diff --git a/Front/skydivelogs-app/src/app/new-aircraft/new-aircraft.component.ts b/Front/skydivelogs-app/src/app/new-aircraft/new-aircraft.component.ts index 050cbbe..ea584d1 100644 --- a/Front/skydivelogs-app/src/app/new-aircraft/new-aircraft.component.ts +++ b/Front/skydivelogs-app/src/app/new-aircraft/new-aircraft.component.ts @@ -31,9 +31,9 @@ export class NewAircraftComponent implements OnInit { return; } - this.serviceApi.AddAircraft(formData.aircraftName, this.selectedFile) + this.serviceApi.addAircraft(formData.aircraftName, this.selectedFile) .subscribe(() => { - this.serviceComm.RefreshData(AddAction.Aircraft); + this.serviceComm.refreshData(AddAction.Aircraft); }); } diff --git a/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.ts b/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.ts index 722830e..fbf79d9 100644 --- a/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.ts +++ b/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.ts @@ -49,7 +49,7 @@ export class NewDropZoneComponent implements OnInit { dzType.push("tunnel"); } - this.dropzoneService.AddDropZone(splitGps[0], + this.dropzoneService.addDropZone(splitGps[0], splitGps[1], formData.dzName, formData.address, @@ -58,7 +58,7 @@ export class NewDropZoneComponent implements OnInit { dzType, false) .subscribe(() => { - this.serviceComm.RefreshData(AddAction.Dropzone); + this.serviceComm.refreshData(AddAction.Dropzone); }); } } diff --git a/Front/skydivelogs-app/src/app/new-gear/new-gear.component.ts b/Front/skydivelogs-app/src/app/new-gear/new-gear.component.ts index 452fcc3..1368047 100644 --- a/Front/skydivelogs-app/src/app/new-gear/new-gear.component.ts +++ b/Front/skydivelogs-app/src/app/new-gear/new-gear.component.ts @@ -49,7 +49,7 @@ export class NewGearComponent implements OnInit { ngOnInit() { } onSubmit(formData) { - this.serviceApi.AddGear(formData.name, + this.serviceApi.addGear(formData.name, formData.manufacturer, +formData.minSize, +formData.maxSize, @@ -57,7 +57,7 @@ export class NewGearComponent implements OnInit { formData.mainCanopy, formData.reserveCanopy) .subscribe(() => { - this.serviceComm.RefreshData(AddAction.Gear); + this.serviceComm.refreshData(AddAction.Gear); }); } } diff --git a/Front/skydivelogs-app/src/app/new-jump-type/new-jump-type.component.ts b/Front/skydivelogs-app/src/app/new-jump-type/new-jump-type.component.ts index 269adab..847dba5 100644 --- a/Front/skydivelogs-app/src/app/new-jump-type/new-jump-type.component.ts +++ b/Front/skydivelogs-app/src/app/new-jump-type/new-jump-type.component.ts @@ -25,9 +25,9 @@ export class NewJumpTypeComponent implements OnInit { ngOnInit() { } onSubmit(formData) { - this.jumpTypeService.AddJumpType(formData.jumptypeName) + this.jumpTypeService.addJumpType(formData.jumptypeName) .subscribe(() => { - this.serviceComm.RefreshData(AddAction.JumpType); + this.serviceComm.refreshData(AddAction.JumpType); }); } } diff --git a/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts b/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts index 4f22c48..ece7456 100644 --- a/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts +++ b/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts @@ -90,7 +90,7 @@ export class NewJumpComponent implements OnInit { onFormSubmit() { this.pendingAddRequest = true; - this.serviceJump.AddListOfJump(this.selectedJumpType.id, + this.serviceJump.addListOfJump(this.selectedJumpType.id, this.selectedAircraft.id, this.selectedDz.id, this.selectedGear.id, @@ -172,7 +172,7 @@ export class NewJumpComponent implements OnInit { private initForm() { this.endDate = new Date(); this.endDate.setHours(0, 0, 0, 0); - this.beginDate = this.dateService.AddDays(this.endDate, -1); + this.beginDate = this.dateService.addDays(this.endDate, -1); this.exitAltitude = 4000; this.deployAltitude = 1000; @@ -225,7 +225,7 @@ export class NewJumpComponent implements OnInit { private updateTitle() { this.translateService.get("NewJump_Title").subscribe( - data => { this.serviceComm.UpdatedComponentTitle(data); } + data => { this.serviceComm.updatedComponentTitle(data); } ); } } diff --git a/Front/skydivelogs-app/src/app/summary/summary.component.ts b/Front/skydivelogs-app/src/app/summary/summary.component.ts index 93fb222..21a22a5 100644 --- a/Front/skydivelogs-app/src/app/summary/summary.component.ts +++ b/Front/skydivelogs-app/src/app/summary/summary.component.ts @@ -129,7 +129,7 @@ export class SummaryComponent implements OnInit { private updateTitle() { this.translateService.get("Summary_Title").subscribe( - data => { this.serviceComm.UpdatedComponentTitle(data); } + data => { this.serviceComm.updatedComponentTitle(data); } ); } } diff --git a/Front/skydivelogs-app/src/services/aircraft.service.ts b/Front/skydivelogs-app/src/services/aircraft.service.ts index b922eb8..b93c848 100644 --- a/Front/skydivelogs-app/src/services/aircraft.service.ts +++ b/Front/skydivelogs-app/src/services/aircraft.service.ts @@ -26,7 +26,7 @@ export class AircraftService extends BaseService { return this.serviceCacheApi.get>(CacheApiKey.Aircraft, callToApi); } - public AddAircraft(aircraftName: string, dataImg: string) { + public addAircraft(aircraftName: string, dataImg: string) { const bodyNewAircraft: AircraftReq = { id: 0, name: aircraftName, diff --git a/Front/skydivelogs-app/src/services/date.service.ts b/Front/skydivelogs-app/src/services/date.service.ts index 99ec6bb..551fce2 100644 --- a/Front/skydivelogs-app/src/services/date.service.ts +++ b/Front/skydivelogs-app/src/services/date.service.ts @@ -8,7 +8,7 @@ export class DateService { this.milliSeconInDay = 1000 * 60 * 60 * 24; } - public AddDays(currentDate: Date, nbDays: number): Date { + public addDays(currentDate: Date, nbDays: number): Date { const totalMilliSeconds = nbDays * this.milliSeconInDay; const currentTime = currentDate.getTime(); const tmpDate = new Date(currentDate.getTime()); @@ -18,7 +18,7 @@ export class DateService { return tmpDate; } - public DiffBetweenDates(beginDate: Date, endDate: Date): number { + public diffBetweenDates(beginDate: Date, endDate: Date): number { const diffInTime = endDate.getTime() - beginDate.getTime(); const diffInDays = Math.round(diffInTime / (1000 * 3600 * 24)); diff --git a/Front/skydivelogs-app/src/services/dropzone.service.ts b/Front/skydivelogs-app/src/services/dropzone.service.ts index 28acc88..010160f 100644 --- a/Front/skydivelogs-app/src/services/dropzone.service.ts +++ b/Front/skydivelogs-app/src/services/dropzone.service.ts @@ -30,7 +30,7 @@ export class DropzoneService extends BaseService { return this.serviceCacheApi.get>(CacheApiKey.Dropzone, callToApi); } - public SetFavoriteDropZone(selectedDz: DropZoneResp) { + public setFavoriteDropZone(selectedDz: DropZoneResp) { selectedDz.isFavorite = true; this.http.put(`${this.apiUrl}/DropZone/AddToFavorite/${selectedDz.id}`, @@ -41,7 +41,7 @@ export class DropzoneService extends BaseService { }); } - public RemoveFavoriteDropZone(selectedDz: DropZoneResp) { + public removeFavoriteDropZone(selectedDz: DropZoneResp) { selectedDz.isFavorite = false; this.http.put(`${this.apiUrl}/DropZone/RemoveToFavorite${selectedDz.id}`, @@ -52,7 +52,7 @@ export class DropzoneService extends BaseService { }); } - public AddDropZone(latitude: string, + public addDropZone(latitude: string, longitude: string, name: string, address: string, diff --git a/Front/skydivelogs-app/src/services/gear.service.ts b/Front/skydivelogs-app/src/services/gear.service.ts index 798f158..4f5e7e3 100644 --- a/Front/skydivelogs-app/src/services/gear.service.ts +++ b/Front/skydivelogs-app/src/services/gear.service.ts @@ -19,7 +19,7 @@ export class GearService extends BaseService { return this.serviceCacheApi.get>(CacheApiKey.Gear, callToApi); } - public AddGear(name: string, + public addGear(name: string, manufacturer: string, minSize: number, maxSize: number, diff --git a/Front/skydivelogs-app/src/services/image.service.ts b/Front/skydivelogs-app/src/services/image.service.ts index 57b41ea..4619606 100644 --- a/Front/skydivelogs-app/src/services/image.service.ts +++ b/Front/skydivelogs-app/src/services/image.service.ts @@ -18,7 +18,7 @@ export class ImageService extends BaseService { }); } - public AddImage(commentImg: string, dataImg: string) { + public addImage(commentImg: string, dataImg: string) { const bodyNewImage: ImageReq = { id: 0, comment: commentImg, diff --git a/Front/skydivelogs-app/src/services/jump-type.service.ts b/Front/skydivelogs-app/src/services/jump-type.service.ts index 32cf748..b8b0c91 100644 --- a/Front/skydivelogs-app/src/services/jump-type.service.ts +++ b/Front/skydivelogs-app/src/services/jump-type.service.ts @@ -19,7 +19,7 @@ export class JumpTypeService extends BaseService { return this.serviceCacheApi.get>(CacheApiKey.JumpType, callToApi); } - public AddJumpType(jumptypetName: string) { + public addJumpType(jumptypetName: string) { const bodyJumpType: JumpTypeReq = { id: 0, name: jumptypetName diff --git a/Front/skydivelogs-app/src/services/jump.service.ts b/Front/skydivelogs-app/src/services/jump.service.ts index c9fa0fd..0a1b9c0 100644 --- a/Front/skydivelogs-app/src/services/jump.service.ts +++ b/Front/skydivelogs-app/src/services/jump.service.ts @@ -1,7 +1,7 @@ import { Injectable } from "@angular/core"; import { HttpClient } from "@angular/common/http"; import { DatePipe } from '@angular/common'; -import { forkJoin, Observable, of } from "rxjs"; +import { forkJoin, Observable } from "rxjs"; import { map } from "rxjs/operators"; import { JumpResp, JumpReq, Jump } from "../models/jump"; @@ -32,28 +32,26 @@ export class JumpService extends BaseService { super(); } - public GetListOfJumps(): Observable> { - return this.http.get>(`${this.apiUrl}/Jump`, - { headers: this.headers }) - .pipe(map((response) => { - return this.MapWithDataInCache(response); - })); + public getListOfJumps(): Observable> { + return this.http.get>(`${this.apiUrl}/Jump`, { headers: this.headers }) + .pipe(map((response) => { + return this.mapWithDataInCache(response); + })); } - public GetJumps(beginIndex: number, endIndex: number): Observable { - return this.http.get(`${this.apiUrl}/Jump/${beginIndex}/${endIndex}`, - { headers: this.headers }) - .pipe(map((response) => { - let result: JumpList = { - rows: this.MapWithDataInCache(response.rows), - count: response.count - }; + public getJumps(beginIndex: number, endIndex: number): Observable { + return this.http.get(`${this.apiUrl}/Jump/${beginIndex}/${endIndex}`, { headers: this.headers }) + .pipe(map((response) => { + let result: JumpList = { + rows: this.mapWithDataInCache(response.rows), + count: response.count + }; - return new JumpList(result); - })); + return new JumpList(result); + })); } - public AddListOfJump(selectedJumpType: number, + public addListOfJump(selectedJumpType: number, selectedAircraft: number, selectedDz: number, selectedRig: number, @@ -66,11 +64,11 @@ export class JumpService extends BaseService { notes: string, isSpecial: boolean): Observable { this.callsToAdd = new Array>(); - const diffInDays = this.dateService.DiffBetweenDates(beginDate, endDate) + 1; + const diffInDays = this.dateService.diffBetweenDates(beginDate, endDate) + 1; const countOfJumpsPerDay = Math.trunc(countOfJumps / diffInDays); for (let i = 1; beginDate.getTime() < endDate.getTime(); i++) { - this.AddJumps(selectedJumpType, + this.addJumps(selectedJumpType, selectedAircraft, selectedDz, selectedRig, @@ -82,12 +80,12 @@ export class JumpService extends BaseService { notes, isSpecial); - beginDate = this.dateService.AddDays(beginDate, 1); + beginDate = this.dateService.addDays(beginDate, 1); } const restfJumps = countOfJumps - countOfJumpsPerDay * (diffInDays - 1); - this.AddJumps(selectedJumpType, + this.addJumps(selectedJumpType, selectedAircraft, selectedDz, selectedRig, @@ -102,16 +100,16 @@ export class JumpService extends BaseService { return forkJoin(this.callsToAdd); } - public DeleteJump(item: Jump) { + public deleteJump(item: Jump) { this.http.delete(`${this.apiUrl}/Jump/${item.id}`, { headers: this.headers, }) .subscribe(); } - public UpdateJump(id: number, - isSpecial: boolean, - withCutaway: boolean, - notes: string) { + public updateJump(id: number, + isSpecial: boolean, + withCutaway: boolean, + notes: string) { const jumpData = { id: id, isSpecial: isSpecial, @@ -125,7 +123,7 @@ export class JumpService extends BaseService { { headers: this.headers, }); } - private AddJumps(selectedJumpType: number, + private addJumps(selectedJumpType: number, selectedAircraft: number, selectedDz: number, selectedRig: number, @@ -157,7 +155,7 @@ export class JumpService extends BaseService { } } - private MapWithDataInCache(apiResp: Array): Array { + private mapWithDataInCache(apiResp: Array): Array { let allDropzones: Array; this.dropzoneService.getFromCache().subscribe(data => { allDropzones = data; }); let allAircrafts: Array; diff --git a/Front/skydivelogs-app/src/services/service-cache-api.service.ts b/Front/skydivelogs-app/src/services/service-cache-api.service.ts index e9d034e..c40d9fc 100644 --- a/Front/skydivelogs-app/src/services/service-cache-api.service.ts +++ b/Front/skydivelogs-app/src/services/service-cache-api.service.ts @@ -15,7 +15,6 @@ export class ServiceCacheApi { } public get(key: CacheApiKey, callToApi: Observable) : Observable { - // console.log(`Get/push cache : ${CacheApiKey[key]}`); const cached = this.cache.get(key); if (cached) { @@ -29,12 +28,10 @@ export class ServiceCacheApi { } public delete(key: CacheApiKey) { - // console.log(`Delete cache : ${CacheApiKey[key]}`); this.cache.delete(key); } public getByKey(key: CacheApiKey) : Observable { - // console.log(`Get cache by key : ${CacheApiKey[key]}`); return this.cache.get(key); } }