aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/MarkKeyUseCase.ts
blob: 61ed1359a645602b4d8fda7fe9397b38112c4eb0 (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
import { injectable, inject } from "tsyringe";
import MarkKeyRepository from "../repositories/MarkKeyRepository";

@injectable()
export default class MarkKeyUseCase {
  constructor(
    @inject("MarkKeyRepository") private repository: MarkKeyRepository
  ) {}

  isSetMode(): boolean {
    return this.repository.isSetMode();
  }

  isJumpMode(): boolean {
    return this.repository.isJumpMode();
  }

  disableSetMode(): void {
    this.repository.disabeSetMode();
  }

  disableJumpMode(): void {
    this.repository.disabeJumpMode();
  }
}