You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|