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

export class FlagMessageDto {
  @ApiProperty({ example: true, description: 'Whether to flag or unflag the message' })
  @IsBoolean()
  flagged: boolean;

  @ApiPropertyOptional({ example: 'Inappropriate language', description: 'Reason for flagging' })
  @IsOptional()
  @IsString()
  flag_reason?: string;
}
