import { Injectable } from "@angular/core" ; import { UserSettingsModel } from "@elevate/shared/models" ; import { BaseDao } from "../base.dao" ; import { StorageLocationModel } from "../../data-store/storage-location.model" ; import { userSettingsData } from "@elevate/shared/data" ; @ Injectable ( ) export class UserSettingsDao extends BaseDao < UserSettingsModel > { public static readonly STORAGE_LOCATION : StorageLocationModel = new StorageLocationModel ( "userSettings" ) ; public static readonly DEFAULT_STORAGE_VALUE : UserSettingsModel = userSettingsData ; public getStorageLocation ( ) { return UserSettingsDao . STORAGE_LOCATION ; } public getDefaultStorageValue ( ) { return UserSettingsDao . DEFAULT_STORAGE_VALUE ; } }