Implemented the interface in all responses

refr #132
This commit is contained in:
niggl committed 2021-01-29 17:06:43 +01:00
1 parent e44cc4c4cb
commit 9d5e486c6d
29 files changed
+260 -32

No files matched your search

+9 -1
View File
@@ -2,11 +2,19 @@ import {
IsInt
} from "class-validator";
import { Principal } from '../entities/Principal';
import { ResponseObjectType } from '../enums/ResponseObjectType';
import { IResponse } from './IResponse';
/**
* Defines the principal response.
*/
export abstract class ResponsePrincipal {
export abstract class ResponsePrincipal implements IResponse {
/**
* The responseType.
* This contains the type of class/entity this response contains.
*/
responseType: ResponseObjectType = ResponseObjectType.PRINCIPAL;
/**
* The principal's id.