import { Injectable } from '@angular/core' ; import { AchievementHistory } from '../../models/achievement/achievement-history' ; import { AchievementsStorageService } from './achievements-storage.service' ; @ Injectable ( ) export class AchievementHistoryStorageService { constructor ( private storage ) { } public async save ( history ) { return this . storage . saveHistory ( history ) ; } public loadAll ( ) { return this . storage . loadAllHistory ( ) ; } }