blob: f8b730271a34898d032b3e94fff8797848a4ce30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import SettingUseCase from '../usecases/SettingUseCase';
import ContentMessageClient from '../infrastructures/ContentMessageClient';
export default class SettingController {
private settingUseCase: SettingUseCase;
private contentMessageClient: ContentMessageClient;
constructor() {
this.settingUseCase = new SettingUseCase();
this.contentMessageClient = new ContentMessageClient();
}
getSetting(): any {
return this.settingUseCase.get();
}
async reload(): Promise<any> {
await this.settingUseCase.reload();
this.contentMessageClient.broadcastSettingsChanged();
}
}
|