31 lines
666 B
TypeScript
31 lines
666 B
TypeScript
import { ConceptResponseDTO } from './dto/conceptresponse.dto';
|
|
|
|
export class ConceptCreateEvent {
|
|
type = 'create';
|
|
constructor(public concept: ConceptResponseDTO) {
|
|
this.concept = new ConceptResponseDTO(concept);
|
|
}
|
|
}
|
|
|
|
export class ConceptEditEvent {
|
|
type = 'edit';
|
|
constructor(public concept: ConceptResponseDTO) {
|
|
this.concept = new ConceptResponseDTO(concept);
|
|
}
|
|
}
|
|
|
|
export class ConceptDeleteEvent {
|
|
type = 'delete';
|
|
constructor(public id: number) {}
|
|
}
|
|
|
|
export class ConceptEnableEvent {
|
|
type = 'enable';
|
|
constructor(public id: number) {}
|
|
}
|
|
|
|
export class ConceptDisableEvent {
|
|
type = 'disable';
|
|
constructor(public id: number) {}
|
|
}
|