blob: 5b66a39d47bca04b33839902801fb95ca75dbdab (
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
|
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();
}
}
|