event-local
Version:
Event client
34 lines (28 loc) • 734 B
text/typescript
import { Command } from "../Command";
import { TestDetail } from "./Test";
export default class TestCommand extends Command {
}
export class CreateTest extends TestCommand {
constructor(testDetail: TestDetail) {
super();
this.version = "1";
this.entity_id = testDetail.id;
this.entity = testDetail;
}
}
export class RenameTest extends TestCommand {
constructor(id: string, name: string) {
super();
this.version = "2";
this.entity_id = id;
this.entity = name;
}
}
export class ChangeStatusTest extends TestCommand {
constructor(id: string, status: number) {
super();
this.version = "3";
this.entity_id = id;
this.entity = status.toString();
}
}