Newer
Older
import { ObjectivePointEntity } from './game.entity';
import { CenterJSON } from '../shared/custom-validation';
export class GameDTO {
@IsString()
@IsNotEmpty()
name: string;
@IsNotEmpty()
@Length(1, 255)
desc: string;
@IsDateString()
@IsNotEmpty()
startdate: string;
@IsDateString()
@IsNotEmpty()
enddate: string;
export class newGameDTO {
@IsString()
@IsNotEmpty()
@Length(3, 30)
name: string;
@IsString()
@IsNotEmpty()
@Length(1, 255)
desc: string;
@IsNotEmpty()
center: JSON;
@IsDateString()
@IsNotEmpty()
startdate: string;
@IsDateString()
@IsNotEmpty()
enddate: string;
}
export class FactionDTO {
@IsString()
@IsNotEmpty()
@Length(2, 15)
export class FlagboxDTO {
@IsString()
@IsNotEmpty()
@Length(7)
objectivePointDescription: string;
@IsNumber()
objectivePointMultiplier: number;
}
export class FlagboxEventDTO {
node_id: string;
owner: number;
action: number;
capture: number;
oP_HistoryTimestamp?: string;
objective_point?: ObjectivePointEntity;
export class GameGroupDTO {
@IsString()
@Length(3, 31)
name: string;