aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/MarkKeyUseCase.ts
blob: 6cef6f2d133dcad5cf872f01c3ec50c18de1bf68 (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
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();
  }

  enableSetMode(): void {
    this.repository.enableSetMode();
  }

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

  enableJumpMode(): void {
    this.repository.enableJumpMode();
  }

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