blob: 3f2df7aa9d37292b578457f25a8620981bdcf512 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import { injectable } from 'tsyringe';
import { Message } from '../../shared/messages';
import NavigateUseCase from '../usecases/NavigateUseCase';
@injectable()
export default class NavigateController {
constructor(
private navigateUseCase: NavigateUseCase,
) {
}
openHistoryNext(_m: Message): Promise<void> {
this.navigateUseCase.openHistoryNext();
return Promise.resolve();
}
openHistoryPrev(_m: Message): Promise<void> {
this.navigateUseCase.openHistoryPrev();
return Promise.resolve();
}
openLinkNext(_m: Message): Promise<void> {
this.navigateUseCase.openLinkNext();
return Promise.resolve();
}
openLinkPrev(_m: Message): Promise<void> {
this.navigateUseCase.openLinkPrev();
return Promise.resolve();
}
}
|