aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/NavigateUseCase.ts
blob: 6f82d3f31180e0d125b1f870e90d3c524f58aeab (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
36
import NavigationPresenter, { NavigationPresenterImpl }
  from '../presenters/NavigationPresenter';

export default class NavigateUseCase {
  private navigationPresenter: NavigationPresenter;

  constructor({
    navigationPresenter = new NavigationPresenterImpl(),
  } = {}) {
    this.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();
  }
}