import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsString, IsOptional, IsBoolean, IsInt, Min } from 'class-validator';

export class UpdateBattleSessionDto {
  @ApiPropertyOptional({ description: 'Session name' })
  @IsOptional()
  @IsString()
  name?: string;

  @ApiPropertyOptional({ description: 'Battle map ID' })
  @IsOptional()
  @IsString()
  mapId?: string;

  @ApiPropertyOptional({ description: 'Whether the session is active' })
  @IsOptional()
  @IsBoolean()
  isActive?: boolean;

  @ApiPropertyOptional({ description: 'Current round number' })
  @IsOptional()
  @IsInt()
  @Min(0)
  roundNumber?: number;
}
