A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
710 B
37 lines
710 B
5 years ago
|
import MarkKeyRepository, { MarkKeyRepositoryImpl }
|
||
|
from '../repositories/MarkKeyRepository';
|
||
|
|
||
|
export default class MarkKeyUseCase {
|
||
|
private repository: MarkKeyRepository;
|
||
|
|
||
|
constructor({
|
||
|
repository = new MarkKeyRepositoryImpl()
|
||
|
} = {}) {
|
||
|
this.repository = repository;
|
||
|
}
|
||
|
|
||
|
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();
|
||
|
}
|
||
|
}
|