aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/NavigateUseCase.ts
blob: 4711c5ec209b2c83d41f40b7d8f8745ff9a6d82f (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
32
33
34
35
import { injectable, inject } from 'tsyringe';
import NavigationPresenter from '../presenters/NavigationPresenter';

@injectable()
export default class NavigateUseCase {
  constructor(
    @inject('NavigationPresenter')
    private navigationPresenter: NavigationPresenter,
  ) {
  }

  openHistoryPrev(): void {
    this.navigationPresenter.openHistoryPrev();
  }

  openHistoryNext(): void {
    this.navigationPresenter.openHistoryNext();
  }

  openLinkPrev(): void {
    this.navigationPresenter.openLinkPrev();
  }

  openLinkNext(): void {
    this.navigationPresenter.openLinkNext();
  }

  openParent(): void {
    this.navigationPresenter.openParent();
  }

  openRoot(): void {
    this.navigationPresenter.openRoot();
  }
}