Implemented the interface in all responses

refr #132
This commit is contained in:
2021-01-29 17:06:43 +01:00
parent e44cc4c4cb
commit 9d5e486c6d
29 changed files with 260 additions and 32 deletions

View File

@@ -1,9 +1,17 @@
import { IsString } from 'class-validator';
import { ResponseObjectType } from '../enums/ResponseObjectType';
import { IResponse } from './IResponse';
/**
* Defines a empty response object.
*/
export class ResponseEmpty {
export class ResponseEmpty implements IResponse {
/**
* The responseType.
* This contains the type of class/entity this response contains.
*/
responseType: ResponseObjectType = ResponseObjectType.EMPTY;
@IsString()
response: string = "nothing here"
}