mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
24 lines
428 B
TypeScript
24 lines
428 B
TypeScript
import {SettingsService} from '../settings.service';
|
|
|
|
export abstract class AbstractSettingsService<T> {
|
|
|
|
constructor(public _settingsService: SettingsService) {
|
|
|
|
}
|
|
|
|
get Settings() {
|
|
return this._settingsService.settings;
|
|
}
|
|
|
|
|
|
public getSettings(): Promise<void> {
|
|
return this._settingsService.getSettings();
|
|
}
|
|
|
|
isSupported() {
|
|
return true;
|
|
}
|
|
|
|
abstract updateSettings(settings: T): Promise<void>;
|
|
}
|