aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/MarkController.ts
blob: 4726fbc371b710b0be29a4ef25db4b3f002df3e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { injectable } from 'tsyringe';
import MarkUseCase from '../usecases/MarkUseCase';

@injectable()
export default class MarkController {
  constructor(
    private markUseCase: MarkUseCase,
  ) {
  }

  setGlobal(key: string, x: number, y: number): Promise<any> {
    return this.markUseCase.setGlobal(key, x, y);
  }

  jumpGlobal(key: string): Promise<any> {
    return this.markUseCase.jumpGlobal(key);
  }
}