Skip to content
Snippets Groups Projects
Commit dd64c997 authored by L4168's avatar L4168
Browse files

added GameStateDTO

parent 21cbd659
No related branches found
No related tags found
3 merge requests!59Development to master,!36Development,!32Game state
...@@ -9,6 +9,8 @@ import { ...@@ -9,6 +9,8 @@ import {
Max, Max,
ValidateNested, ValidateNested,
Allow, Allow,
IsUUID,
IsIn,
} from 'class-validator'; } from 'class-validator';
import { ObjectivePointEntity } from './game.entity'; import { ObjectivePointEntity } from './game.entity';
...@@ -68,6 +70,13 @@ export class newGameDTO { ...@@ -68,6 +70,13 @@ export class newGameDTO {
enddate: string; enddate: string;
} }
export class GameStateDTO {
@IsUUID('4')
id: string;
@IsIn(['CREATED', 'STARTED', 'PAUSED', 'ENDED'])
state: string;
}
export class FlagboxDTO { export class FlagboxDTO {
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment