aboutsummaryrefslogtreecommitdiff
path: root/src/background/usecases/FindUseCase.ts
blob: ce96e038168b52465b0d9e5ff3d7e6b80d439e29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { injectable } from "tsyringe";
import FindRepository from "../repositories/FindRepository";

@injectable()
export default class FindUseCase {
  constructor(private readonly findRepository: FindRepository) {}

  getKeyword(): Promise<string> {
    return this.findRepository.getKeyword();
  }

  setKeyword(keyword: string): Promise<any> {
    return this.findRepository.setKeyword(keyword);
  }
}