Files
events/word.events.ts
T

27 lines
528 B
TypeScript

import { WordResponseDTO } from './dto/wordresponse.dto';
export class WordCreateEvent {
type = 'create';
constructor(public word: WordResponseDTO) { }
}
export class WordEditEvent {
type = 'edit';
constructor(public word: WordResponseDTO) { }
}
export class WordDeleteEvent {
type = 'delete';
constructor(public id: number) { }
}
export class WordEnableEvent {
type = 'enable';
constructor(public id: number) { }
}
export class WordDisableEvent {
type = 'disable';
constructor(public id: number) { }
}