2020-04-22 12:56:18 +02:00
|
|
|
import { Injectable } from '@angular/core';
|
|
|
|
import { LocalStorage } from 'ngx-webstorage';
|
|
|
|
|
|
|
|
import { Language } from '../enums/language.enum';
|
|
|
|
import { Theme } from '../enums/theme.enum';
|
|
|
|
|
|
|
|
@Injectable({
|
|
|
|
providedIn: 'root',
|
|
|
|
})
|
|
|
|
export class StorageService {
|
|
|
|
@LocalStorage()
|
|
|
|
public theme: Theme;
|
|
|
|
|
|
|
|
@LocalStorage()
|
|
|
|
public language: Language;
|
|
|
|
|
|
|
|
@LocalStorage()
|
|
|
|
public userPollsIds: string[];
|
2020-05-05 18:17:12 +02:00
|
|
|
|
|
|
|
@LocalStorage()
|
|
|
|
public pseudo: string;
|
2020-04-22 12:56:18 +02:00
|
|
|
}
|