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 { this.navigateUseCase.openHistoryNext(); return Promise.resolve(); } openHistoryPrev(_m: Message): Promise { this.navigateUseCase.openHistoryPrev(); return Promise.resolve(); } openLinkNext(_m: Message): Promise { this.navigateUseCase.openLinkNext(); return Promise.resolve(); } openLinkPrev(_m: Message): Promise { this.navigateUseCase.openLinkPrev(); return Promise.resolve(); } }